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

Free Support Forum - aspose.com

Aspose Email Ordering messages descending by message sequence or date

I am new to using aspose email and cannot find a good example of how to order messages so that the newest ones are one top. Any help would be appreciated.

By the way I am using Pop3MessageInfoCollection -

I was able to find an answer that worked for me

Pop3MessageInfoCollection msgCollection = client.ListMessages();

MessagesGridView.DataSource = msgCollection.OrderByDescending(x => x.Date).ToList();


Hi Jane,

Thank you for sharing your solution with us.

I am afraid that current implementation of Pop3Client does not provide means to sort the message list. The fetched message list is in ascending order by default and you can reverse the order by writing your own custom logic. If you are binding the list with GridView then your presented solution seems to be the best option.