Hello,
I’m working with Aspose.Email to process PST files and have noticed something about the EnumerateMessages method that I’d like to clarify.
From my observations, the order of emails returned by EnumerateMessages doesn’t seem to follow either of the expected sequences based on the time they were added to the folder. Specifically, it’s not sorted from newest to oldest, nor from oldest to newest in terms of their addition time.
The parsed email is as follows:
-
Subject: xxx
sender: xxx
date: 2023/11/25 9:22:17
entryId: AAAAAxxxxxx -
Subject: xxx
sender: xxx
date: 2023/10/18 0:46:11
entryId: AAAAAxxxxxx -
Subject: xxx
sender: xxx
date: 2023/11/5 2:41:39
entryId: AAAAAxxxxxx -
Subject: xxx
sender: xxx
date: 2023/10/29 7:33:39
entryId: AAAAAxxxxxx -
Subject: xxx
sender: xxx
date: 2023/10/27 20:12:25
entryId: AAAAAxxxxxx -
Subject: xxx
sender: xxx
date: 2023/10/25 5:50:22
entryId: AAAAAxxxxxx
Could you please clarify what specific order EnumerateMessages actually uses to return emails? Additionally, is there a way to make it return emails in the order from newest to oldest (based on their addition time or send/receive time)? If possible, could you provide guidance on how to achieve this?
Any insights would be much appreciated. Thank you!