6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9626] Imap_Client fetch() fails with empty UID list
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.. .._.. ..___ | |\ | | |__|[__ | | \|_|_| |[___
Comment
> The following fails with an exception ... > > $query = new Horde_Imap_Client_Fetch_Query(); > $query->structure(); > > $ret = $this->getBackend()->fetch( > $folder, > $query, > array('ids' => new Horde_Imap_Client_Ids($uids)) > ); > > ... if $uids is array(). > > (1299420790.8779) C: 5 UID FETCH (BODYSTRUCTURE) > (1299420790.8787) S: 5 BAD Invalid sequence in Uid > > 12. Horde_Imap_Client_Socket->_fetch() > /home/wrobel/environment/horde-glue/horde/framework/Imap_Client/lib/Horde/Imap/Client/Base.php:1954 > 13. Horde_Imap_Client_Socket->_sendLine() > /home/wrobel/environment/horde-glue/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:2430 > 14. Horde_Imap_Client_Socket->_parseResponse() > /home/wrobel/environment/horde-glue/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:3493 > 15. Horde_Imap_Client_Base->_exception() > /home/wrobel/environment/horde-glue/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:3860 > > I can obviously catch the problem before calling fetch() but I > wondered if it wouldn't make sense to change the API to return an > empty array in that case.
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