6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/31/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13971] Horde_Imap_Client_Search_Query with empty ids object
*
Your Email Address
*
Spam protection
Enter the letters below:
.__.. ..__..___.. . | ||_/ [__] _/ |_/ |__|| \| |./__.| \
Comment
> When performing a search and the search includes an id set that the > results should belong to, and that id set is empty, the ids object is > ignored. I.e.: > > $q = new Horde_Imap_Client_Search_Query(); > $q->dateSearch(new Horde_Date(1427907906), > Horde_Imap_Client_Search_Query::DATE_BEFORE); > > // Obviously a contrived example. $ids in this case would come from > some stored id list that may or may not contain any messages. > $ids = new Horde_Imap_Client_Ids(array()); > $q->ids($ids); > > $res = $imapOb()->search( > new Horde_Imap_Client_Mailbox('sent-mail-may-2011'), > $q, > array('results' => array(Horde_Imap_Client::SEARCH_RESULTS_MATCH))); > > > I would expect that this would return an empty result set, ideally > short-circuiting the actual search since we know nothing could > possibly match. Granted, we could check this in client code, but > nothing in the phpdoc of Horde_Imap_Client would lead me to believe > that this would be necessary.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers