Hi,
I am using the latest version of Aspose.Email (3.0.0.0), but I am having a issue when I try to get the date from some eml files.
These EML files contains following dates:
-1 "Date: 16 4 2005 23:08:16"
-2 "Date: 16 4 2005 23:08:16 -0300"
-3 "Date: 16 Apr 2005 23:08:16"
-4 "Date: 16 Apr 2005 23:08:16 -0300"
-5 "Date: Tue, 16 Apr 2005 23:08:16 -0300"
-6 "Date: Tue, 16 Apr 2005 23:08:16 -0300 (CDT)"
-7 "Date: Tue, 16 Apr 2005 23:08:16"
-8 "Date: Tue, 16 Apr 2005 23:08:16 GMT"
This is the date that returns (Aspose.Email):
1- "0001-01-01 00:00:00.000" - Invalid date
2- "0001-01-01 00:00:00.000" - Invalid date
3- "0001-01-01 00:00:00.000" - Invalid date
4- "2005-04-17 02:08:16.000" - OK
5- "2005-04-17 02:08:16.000" - OK
6- "2005-04-17 02:08:16.000" - OK
7- "0001-01-01 00:00:00.000" - Invalid date
8- "2005-04-16 23:08:16.000" - OK
But, the previous version (Aspose.Network) returns the correct date that has the EML files:
1- "2005-04-16 23:08:16.000" - OK
2- "2005-04-17 02:08:16.000" - OK
3- "2005-04-16 23:08:16.000" - OK
4- "2005-04-17 02:08:16.000" - OK
5- "2005-04-17 02:08:16.000" - OK
6- "2005-04-17 02:08:16.000" - OK
7- "2005-04-16 23:08:16.000" - OK
8- "2005-04-16 23:08:16.000" - OK
When used the previous version (Aspose.Network 6.7.0.0), this issue does not happen.
This is the code I am using:
MailMessage message = MailMessage.Load("example.eml", MessageFormat.Eml);
Console.WriteLine(message.Date);
My test was performed using UTC time zone.
I attached some EML files to analyze it and reproduce this issue.
Please if there is something that you could do to fix this I'll really appreciate.
Regards,