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

Free Support Forum - aspose.com

FetchMessages sort logic

Hi Team,

//
// Summary:
// Fetches the messages
//
// Parameters:
// uids:
// The sequence numbers of the messages
//
// Returns:
// List of Aspose.Email.MailMessage objects
public IList FetchMessages(IEnumerable uids);

how to sort the result?
If i set the params uids as List() {“2”, “1”, “3”}, what is the result?
If I set the params uids as List() {“3”, “2”, “1”}, what is the result?

Thanks

@gavin.zhao,

I have observe your comments and like to share that FetchMessage() enumerates the messages in order they appear in your mailbox. If you have got collection and you want to sort it then you need to implement your own approach in this regard to sort the items w.r.t your choice.

@mudassir.fayyaz
the result messages sort by the date?

@gavin.zhao,

The results of message is the order they appear in mailbox.