Error while attempting to ListMessages containing a mail without date (ASPOSE.net email 20.5.0.0)

When attempting to retrieve a list of message using the ImapClient in ASPOSE.ent email v20.5.0.0, if any email that is retrieved contains a blank “date:” header, the component throws an exception.

I’ve tried the ListMessagesByPage and the ListMessages methods. Both throw the same exception.

The date should be defaulted to NULL if it is not present, so you could retrieve the mail.

The client is unable to read emails using this components because the date header is not set.

Thanks.

@mpmsoftware

I suggest you to please try using Aspose.Email for 20.9.1 on your end. In case there is still an issue then please share the working sample code along with source file and issue details on your end.

Tried the latest version (20.9.1). The error still appears.

The exception detail when attempting to do ImapClient.ListMessage(sequenceNumber_corruptedMsg) is:

image.png (24.2 KB)

@mpmsoftware

In that case please provide working sample code along with test account credentials reproducing the issue that we test, verify and then resolve on our end .