[dev] Re: IMAP_Tree broken

Chuck Hagenbuch chuck at horde.org
Tue Feb 22 13:45:31 PST 2005


Quoting Michael M Slusarz <slusarz at mail.curecanti.org>:

> I would start with reset() in IMAP_Tree:: - namely, to see if 'INBOX'
> is present in the tree at that time and if INBOX is correctly being
> identified as the first element in the tree.

It's in the tree, but not under $this->_tree[null] (using null as an 
array key doesn't seem like a very good idea, fwiw). The following diff 
to Tree.php gets my folders back, though now nothing is sorted, so I 
won't commit:

@@ -698,7 +698,7 @@
         }

         if ($this->_mode == IMAPTREE_MODE_MAIL) {
-            $this->_currkey = array_search('INBOX', $this->_tree[null]);
+            $this->_currkey = array_search('INBOX', $this->_tree);
         } else {
             $this->_currkey = 0;
         }

That tell you anything? Things were working perfectly before rev 1.56.

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the dev mailing list