<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Imap_Client fetch() fails with empty UID list</title> 
  <pubDate>Fri, 10 Apr 2026 19:46:46 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9626</link> 
  <atom:link rel="self" type="application/rss+xml" title="Imap_Client fetch() fails with empty UID list" href="https://bugs.horde.org/ticket/9626/rss" /> 
  <description>Imap_Client fetch() fails with empty UID list</description> 
 
   
   
  <item> 
   <title>The following fails with an exception ...

        $query </title> 
   <description>The following fails with an exception ...

        $query = new Horde_Imap_Client_Fetch_Query();
        $query-&gt;structure();

        $ret = $this-&gt;getBackend()-&gt;fetch(
            $folder,
            $query,
            array(&#039;ids&#039; =&gt; 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-&gt;_fetch() /home/wrobel/environment/horde-glue/horde/framework/Imap_Client/lib/Horde/Imap/Client/Base.php:1954
13. Horde_Imap_Client_Socket-&gt;_sendLine() /home/wrobel/environment/horde-glue/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:2430
14. Horde_Imap_Client_Socket-&gt;_parseResponse() /home/wrobel/environment/horde-glue/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:3493
15. Horde_Imap_Client_Base-&gt;_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&#039;t make sense to change the API to return an empty array in that case. </description> 
   <pubDate>Sun, 06 Mar 2011 14:31:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9626#t62073</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9626: A</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9626: Add Horde_Imap_Client_Ids#isEmpty()

 4 files changed, 83 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/e7d466400e867b7c3fef90540ae862542d5a195c</description> 
   <pubDate>Mon, 07 Mar 2011 08:10:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9626#t62082</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
