[imp] Missing folders in folders.php

Chris Hastie lists at oak-wood.co.uk
Fri May 14 15:04:43 PDT 2004


On Fri, 14 May 2004, Chris Hastie <lists at oak-wood.co.uk> wrote
>On Thu, 13 May 2004, Chris Hastie <lists at oak-wood.co.uk> wrote:
>
>> I've just done a CVS update and think I've managed to go through all the
>> config files and update them, but have a problem with folders.php.
>> Folders that come alphabetically before 'INBOX' are not displayed.
>>
>
>To expand on this, and correct it slightly, the lists that do show all folders
>include both 'INBOX', at the top, and 'Inbox', alphabetically, just before
>'info'.

I've poked about with this and have some idea of what is going wrong 
now. The value of $imptree->_first is getting set to 'Inbox', resulting 
in $imptree->reset() moving the pointer to 'Inbox', not INBOX, which 
would be at the start of the list.

This kludge makes sure that $immptree->_first gets set to 'INBOX', 
giving me back the rest of my folders. But it doesn't solve the fact 
that I still have both an INBOX and an Inbox showing - I'll have to 
leave that to someone with more idea of what they're doing I'm afraid. 
Getting this far was a struggle:(

--- Tree.php.orig       Fri May 14 21:03:07 2004
+++ Tree.php    Fri May 14 22:54:49 2004
@@ -72,6 +72,7 @@

          if (!isset($boxes['INBOX'])) {
              $boxes['INBOX'] = $this->_getMailbox('INBOX');
+            $boxes['INBOX']->name = 'INBOX';
          }

          /* Do a sort to make sure that 'INBOX' always appears as the first


-- 
Chris Hastie


More information about the imp mailing list