[Tickets #10869] Cyrus 2.2 not working with IMP and numerical folders

bugs at horde.org bugs at horde.org
Fri Dec 16 14:24:57 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10869
------------------------------------------------------------------------------
  Ticket             | 10869
  Created By         | js at cvut.cz
  Summary            | Cyrus 2.2 not working with IMP and numerical folders
  Queue              | IMP
  Version            | 5.0.16
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


js at cvut.cz (2011-12-16 14:24) wrote:

When using Cyrus 2.2.x or other imap server without capability  
LIST-EXTENDET accounts with numerical folders hooks in infinite loop  
when sorting and working with tree. When create or have numeric named  
folder in root. Wrong things happend after array_merge and renumbering  
of arrays. In some point this cause infinite loop, locked session,  
process of Apache and 100% and never ending. Working patch is:

--- /usr/share/php/Horde/Imap/Client/Socket.php 2011-12-16  
15:15:48.335016069 +0100
+++ /usr/share/php/Horde/Imap/Client/Socket.php.orig    2011-12-13  
16:59:42.309864256 +0100
@@ -1109,7 +1109,7 @@
              if (is_array($pattern)) {
                  $return_array = array();
                  foreach ($pattern as $val) {
-                    $return_array = $return_array +  
$this->_getMailboxList($val, $mode, $options, $subscribed);
+                    $return_array = array_merge($return_array,  
$this->_getMailboxList($val, $mode, $options, $subscribed));
                  }
                  return $return_array;
              }






More information about the bugs mailing list