We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unable to download message list

Hi,
during invocation of Aspose.Email.Clients.Imap.ImapClient.ListMessages, we get this exception:

Message: Not a valid Win32 FileTime.
Exception type:	System.ArgumentOutOfRangeException
Failed method: Aspose.Email.Mapi.PropertyDescriptor.#=zOa_L9jU=
StackTrace:

Eccezione interna Aspose.Email.AsposeException gestita in xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.Execute:
   at #=zTelfMkNy8zqdek00n_lfpJvqME0D.#=zQIySHl8= (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=zTelfMkNy8zqdek00n_lfpJvqME0D.#=zQIySHl8= (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at Aspose.Email.Clients.EmailClient.#=zrFvXtYwHW3OC (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at Aspose.Email.Clients.Imap.ImapClient.EndListMessages (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at Aspose.Email.Clients.Imap.ImapClient.ListMessages (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   .......
Eccezione interna Aspose.Email.AsposeException gestita in #=zTelfMkNy8zqdek00n_lfpJvqME0D.#=zQIySHl8=:
   at #=zTelfMkNy8zqdek00n_lfpJvqME0D.#=zQIySHl8= (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=zTelfMkNy8zqdek00n_lfpJvqME0D.#=zrVjinww= (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=zNr5PMnVMYsM$X_CoZV3xSQTAy_yQGlaTkskygsQ=.#=zOmPxT0ZAJfRZ (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=zNr5PMnVMYsM$X_CoZV3xSQTAy_yQGlaTkskygsQ=.#=zAIsknUU= (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=zClC9J2A$pHWLBxQf4PuCJvPYPewpHflSfA==.#=zQI0g6Nh7dLw8 (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
Eccezione interna System.ArgumentOutOfRangeException gestita in #=zTelfMkNy8zqdek00n_lfpJvqME0D.#=zQIySHl8=:
   at System.DateTime.ToFileTimeUtc (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.DateTime.ToFileTime (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at Aspose.Email.Mapi.PropertyDescriptor.#=zOa_L9jU= (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at Aspose.Email.Mapi.PropertyDescriptor.#=zOa_L9jU= (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at Aspose.Email.Mapi.MapiProperty..ctor (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at Aspose.Email.Clients.MessageInfoBase.#=z3d$j4M1l1ftt (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=zv6JDyjReU0FpVYETJhAAEfdXm1YYWK7hauloc44=.#=zdXlB$OzPtWtf (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=zv6JDyjReU0FpVYETJhAAEfdXm1YYWK7hauloc44=.#=zrqHrsws= (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=zv6JDyjReU0FpVYETJhAAEfdXm1YYWK7hauloc44=.#=zP5AdRUdSWks7 (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=zv6JDyjReU0FpVYETJhAAEfdXm1YYWK7hauloc44=.#=zJiKoi$4eGVmh (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
   at #=z6TzmIggaYr6gD28pVgp0qCw4V2FSPqP3f6y2upE=.#=zu9UzWV0= (Aspose.Email, Version=20.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)

We moved one message at a time to a different folder and tried to read from that folder. We found the message that causes that error to occur when downloading the list. --> message.zip (4.2 KB)

After downloading it through webclient in eml format, when we try to open it with the MailMessagge.Load method, the “Date” field contains the value “01/01/0001”.
We opened the eml with a text editor and we found this:

“…
Date: Thu, Mar 26 06:20:18 CET 2020 +0100
…”
and a warning:
“…
X-Spam-Report:
* 0.4 INVALID_DATE Invalid Date: header (not RFC 2822)
…”.

We’re using Aspose Email 20.2 with dotnet 4.6.1

@biagio_carratu_dedagroup_it,

I have observed the issue shared by you and have created an issue with ID EMAILNET-39776 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

hi, we see you resolved the issue. Can you share a beta version? If official release is at beginning of next month, It will take too long to respond our customers on our side. In this difficoult period mail management service are very important and critical systems.

@biagio_carratu_dedagroup_it.

The issue has been marked as resolved in upcoming Aspose.Email for . NET 20.4. We will share the good news with you as soon as the product will be shared online.

Thank you, actually we several our customers are stuck with this problem and are complaining of this issue and asking us penalties.
Can we have a preview beta version of this fix, in order to test and be sure that is solved?

When is expected to be released the official version 20.4?

@biagio_carratu_dedagroup_it,

We can understand your concerns and like to share that the product is likely to be available online during early coming week. We will share the good news with you as soon as the product will be shared online.

The issues you have found earlier (filed as EMAILNET-39776) have been fixed in this update.