<?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_Tree _getList recurse and die with faulty @imap_getmailboxes()</title> 
  <pubDate>Fri, 10 Apr 2026 09:21:09 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4965</link> 
  <atom:link rel="self" type="application/rss+xml" title="IMAP_Tree _getList recurse and die with faulty @imap_getmailboxes()" href="https://bugs.horde.org/ticket/4965/rss" /> 
  <description>IMAP_Tree _getList recurse and die with faulty @imap_getmailboxes()</description> 
 
   
   
  <item> 
   <title>By some reason, when IMP tries to retrieve a IMAP tree, _get</title> 
   <description>By some reason, when IMP tries to retrieve a IMAP tree, _getList to get the children of folder encounters a folder that returns the name of folder.

The IMAP server is my Cyrus, and the folder is called &quot;SharedFolders&quot; which is designated for the shared folders.

In this particular case, expanding a folder &quot;SharedFolder&quot; resuled &quot;SharedFolder/mailing-lists&quot;, &quot;SharedFolder/Records&quot;, and &quot;SharedFolder&quot;.

This may be a bug of @imap_getmailboxes(). Anyhow, I did in _getList()



                    if ($box-&gt;name &amp;&amp; !isset($unique[$box-&gt;name])) {                                                    

                        if ( ($box-&gt;name . &#039;/%&#039;) != $path) {                                                            

                            $unique[$box-&gt;name] = $box;                                                                 

                        }                                                                                               

                    }                                                                                                   



to filter out $path when it&#039;s returned from @imap_getmailboxes() in _getList().



Without the hack, it recurses and dies.

I did not chase down @imap_getmailboxes(). For me, I&#039;m happy with the result as IMP now functions. But, if someone is seeing a similar problem, I think this is worth reporting.

You can decide IMAP_Tree::_getList() or @imap_getmailboxes() is at fault. But, moral equivalent of hack in _getList() maybe a good insurance to have nonetheless.



</description> 
   <pubDate>Sat, 03 Feb 2007 08:13:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4965#t29116</link> 
  </item> 
   
  <item> 
   <title>Seems to be a duplicate of Ticket 4987.</title> 
   <description>Seems to be a duplicate of Ticket 4987.</description> 
   <pubDate>Fri, 09 Feb 2007 06:11:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4965#t29339</link> 
  </item> 
   
  <item> 
   <title>&gt; Seems to be a duplicate of Ticket 4987.



The  new ticket</title> 
   <description>&gt; Seems to be a duplicate of Ticket 4987.



The  new ticket could be 4586

</description> 
   <pubDate>Fri, 09 Oct 2009 17:09:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4965#t56221</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
