[Tickets #9273] IMAP Error when only INBOX exists

bugs at horde.org bugs at horde.org
Wed Sep 29 18:01:52 UTC 2010


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

Ticket URL: http://bugs.horde.org/ticket/9273
------------------------------------------------------------------------------
  Ticket             | 9273
  Created By         | stephens at ameslab.gov
  Summary            | IMAP Error when only INBOX exists
  Queue              | IMP
  Version            | 4.3.8
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


stephens at ameslab.gov (2010-09-29 14:01) wrote:

Some of our users complained about receiving this error right after we  
upgraded to IMP 4.3.8:

Fatal error: Unsupported operand types in  
/home/web/appversions/horde-3.3.9/imp-h3-4.3.8/lib/IMAP/Tree.php on  
line 333

We isolated the complaining users as those with only INBOX mailbox and  
no other IMAP mailboxes in their Maildir store on the server.

When we patch lib/IMAP/Tree.php as follows, the error does not occur  
and these users are able to use IMP.  However, this patch has not been  
thoroughly tested.

--- Tree.php.1  2010-09-11 11:59:11.000000000 -0500
+++ Tree.php    2010-09-29 11:38:25.000000000 -0500
@@ -330,7 +330,8 @@

          if (!isset($names['INBOX'])) {
              /* INBOX must always appear. */
-            $names = array('INBOX' => 1) + $names;
+            /*$names = array('INBOX' => 1) + $names;*/
+            $names = array('INBOX' => 1);
          }

          if ($showunsub) {

 From diff'ing lib/IMAP/Tree.php, it appears this bug was introduced  
during the change from IMP 4.3.7 to 4.3.8.

We use Courier IMAP 4.1.3 as our POP/IMAP server.

We are running IMP with Horde RHEL5.x using PHP 5.2.x, and our IMP  
config/servers.php is configured as follows:

$servers['imap'] = array(
     'name' => 'Imap server',
     'server' => 'imap-server-hostname.XXXX.YYY',
     'hordeauth' => false,
     'protocol' => 'imap/ssl/novalidate-cert',
     'port' => 993,
     'maildomain' => 'XXXX.YYY',
     'smtphost' => 'smtp-server-hostname.XXXX.YYY',
     'smtpport' => 25,
     'realm' => '',
     'preferred' => '',
);







More information about the bugs mailing list