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.61k stars 627 forks source link

ESEARCH support (was Support for pagination and specifying results per page for search queries) #721

Open alfiehanssen opened 10 years ago

alfiehanssen commented 10 years ago

I'm building an application that relies on several search queries using searchGmailRaw: of MCOIMAPSearchExpression. Some of those query responses contain thousands of message indexes (via an MCOIndexSet). Because of this it can take a relatively long time to receive a response.

Does MailCore2 contain support for paginated requests? I.e., can I make one of these queries but specify that I want "page 1" of the results or "results 1-25" as opposed to the whole package?

Thanks in advance for any pointers!

dinhvh commented 10 years ago

It doesn't support pagination yet. Using IMAP ESEARCH would be the way to go for the implementation of paginated search.

pitiphong-p commented 9 years ago

Wow this is interesting. BTW I can't find any information about ESEARCH, could anyone provide some link on this command for me?

dinhvh commented 9 years ago

https://tools.ietf.org/search/rfc4731

Related, this one is also interesting: http://tools.ietf.org/search/rfc6237