[#10094] Support multiple mailboxes in IMAP search command
Summary Support multiple mailboxes in IMAP search command
Queue IMP
Queue Version Git master
Type Enhancement
State Accepted
Priority 2. Medium
Owners
Requester slusarz@horde.org
Created 2011-05-18 (3449 days ago)
Due
Updated 2014-08-25 (2254 days ago)
Assigned
Resolved
Milestone
Patch No

Comments
Michael Slusarz <slusarz@horde.org> 2011-05-18 06:22:36
Accepting multiple mailboxes will allow us to leverage the power of 
RFC 6237 (MULTISEARCH).  However, this will be a API-breaking change 
in Horde_Imap_Client_Base::search() - first parameter will need to be 
changed to allow an array of mailboxes - so it will require IMP 5.1.

Jan Schneider <jan@horde.org> 2011-05-18 08:15:30
IMP 6. No BC breaks in a major version.

Michael Slusarz <slusarz@horde.org> 2011-12-06 06:31:43
> IMP 6. No BC breaks in a major version.

This does not need to wait for IMP 6.  Still mulling how I want to 
implement this though.  Currently, the logic in 
Horde_Imap_Client_Base#search() is very mailbox specific - primarily 
for caching reasons - so this is more difficult than just looping 
through a list of mailboxes passed to search().

giel@fsfe.org 2014-08-25 08:31:39
> Accepting multiple mailboxes will allow us to leverage the power of 
> RFC 6237 (MULTISEARCH).  However, this will be a API-breaking change 
> in Horde_Imap_Client_Base::search() - first parameter will need to 
> be changed to allow an array of mailboxes - so it will require IMP 
> 5.1.

Keep in mind though that there currently are either no or very few 
IMAP servers that actually implement this capability.

http://www.imapwiki.org/Specs#line-61

Michael Slusarz <slusarz@horde.org> 2014-08-25 17:55:03
> Keep in mind though that there currently are either no or very few 
> IMAP servers that actually implement this capability.

Which is why it hasn't been implemented yet.

On the other hand, no IMAP server supports UTF8 yet and 
Horde_Imap_Client does.  Always going to be a chicken/egg problem when 
first implementing protocols, so it doesn't hurt to be an early adopter.