6.0.0-alpha12
6/12/25

[#10869] Cyrus 2.2 not working with IMP and numerical folders
Summary Cyrus 2.2 not working with IMP and numerical folders
Queue IMP
Queue Version 5.0.16
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester js (at) cvut (dot) cz
Created 12/16/2011 (4927 days ago)
Due
Updated 12/20/2011 (4923 days ago)
Assigned
Resolved 12/20/2011 (4923 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/20/2011 05:04:48 AM Git Commit Comment #4 Reply to this comment
Changes have been made in Git for this ticket:

Bug #10869: This is a mailbox object, so need strval().

  1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/fb80e50141f3ef82d8a0a3b333762ffe35fd3469
12/20/2011 03:01:52 AM Michael Slusarz Comment #3
Assigned to Michael Slusarz
State ⇒ Resolved
Patch ⇒ No
Reply to this comment
This has nothing to do with Horde_Imap_Client.  Nowhere in the API 
documentation does listMailboxes() guarantee that key names are the 
mailbox names.

Instead, we need to get the mailbox name from the mailbox key returned 
from listMailboxes().  We were not doing that in two places in 
IMP_Imap_Tree, which has been fixed.
12/20/2011 03:00:47 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

[mms] Fix display of numerically-named mailboxes on IMAP servers 
without the LIST-EXTENDED IMAP capability (Bug #10869).

  3 files changed, 11 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/c403266f3f11d728e4768c8a2754c7a14a6cf2c0
12/16/2011 02:24:57 PM js (at) cvut (dot) cz Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Cyrus 2.2 not working with IMP and numerical folders
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
Reply to this comment
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;
              }

Saved Queries