-
Notifications
You must be signed in to change notification settings - Fork 87
Add support for MULTISEARCH #227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Cool I see that both Gmail and Dovecot support ESEARCH so IMAPClient certainly should too. |
I've dug a little into this one this afternoon... And this is not really a success for now. I've tried with three differents servers, and neither of them seem to handle ESEARCH ! I made a SEARCH and ESEARCH command each time to show the difference in the error message. ssl0.ovh.net (OVH, one of the biggest cloud provider in Europe)
imap.laposte.net (post service in France with some digital services)
imap.gmail.com (do I need to specify this one?)
Did I miss something? Do I need to activate somehow ESEARCH before using it? I tried to use
|
When a server advertises the That said, to make things confusing, if the server advertises the In order for IMAPClient to support |
Alright, I read too fast and missed the "A server that supports this extension includes "MULTISEARCH" in its IMAP capability string" part indeed... So all those servers handle So your comment in December is not relevant because of this "confusing" naming, right? |
Sorry about my previous comment. I didn't realise the difference between the 2 uses of Do you know of any servers that support |
I've just tried at work, where I have tests accounts on more services. Not a single of them has "MULTISEARCH" in their capabilities. The RFC has been amended in 2014 (RFC 7377) to be considered final, so the late adoption might explains why there is no implementation. Stéphane Bortzmeyer, a French guy who loves writing articles about RFC, wrote in this article http://www.bortzmeyer.org/7377.html (translated here):
Even though it could be implemented and tested with a server, would it be valuable to maintain this if it is not really used in the real world... |
I don't think it's worth supporting MULTISEARCH if there's no server support. @mlorant & @NicolasLM : are you guys interested in IMAPClient supporting the |
I don't have any need of If someone is interested to use it, it can be done easily for the 2.0.0 I guess. Plus, it is widely supported, so there's no problem in finding real use cases for this one. |
|
I've opened another ticket. Closing this one. |
Some RFC defines new command that can improve usability of IMAP for developers. For example, the RFC 6237 defines a command ESEARCH that allows to search for messages through all mailboxes (instead of only the one currently selected).
That allows to search for all messages without iterating over each mailbox, which can be long with some people who have hundreds of folders in their account 📬
The user can still check the feature is supported through
.capabilities()
(and provide a fallback for servers which does not support it). I don't know if other commands like that could be implemented. Today, we need to use_raw_command
and its friends, which withdraws interest in the lib :)The text was updated successfully, but these errors were encountered: