MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.59k stars 623 forks source link

Is there a way to fetch emails sorted by certain field? #1943

Open mixtly87 opened 2 years ago

mixtly87 commented 2 years ago

For example, is there a way to fetch first N emails sorted by Arrival date, Sent date, Subject, From/To, Cc or Size?

I'm aware of search API in the form of MCOIMAPSearchExpression but I don't see options to set the sort (order by) predicate somewhere. Does such option exist in mailcore2?