Fixed a problem where unformatted-disp could go unset.
authorallah03 <allah03@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 17 May 2001 04:19:49 +0000 (04:19 +0000)
committerallah03 <allah03@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 17 May 2001 04:19:49 +0000 (04:19 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1372 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index d0252d6..784d921 100755 (executable)
             $mailbox = substr($mailbox, 0, strlen($mailbox) - 1);
          $boxes[$g]['unformatted'] = $mailbox;
          if (substr($mailbox,0,strlen($folder_prefix))==$folder_prefix) { 
             $mailbox = substr($mailbox, 0, strlen($mailbox) - 1);
          $boxes[$g]['unformatted'] = $mailbox;
          if (substr($mailbox,0,strlen($folder_prefix))==$folder_prefix) { 
-            $boxes[$g]['unformatted-disp'] = substr($mailbox, strlen($folder_prefix));
-         } else if (strtolower($mailbox) == "inbox") {
-            $boxes[$g]['unformatted-disp'] = $mailbox;
-         }
+            $mailbox = substr($mailbox, strlen($folder_prefix));
+         $boxes[$g]['unformatted-disp'] = $mailbox;
          $boxes[$g]['id'] = $g;
 
          if (isset($line[$g]))
          $boxes[$g]['id'] = $g;
 
          if (isset($line[$g]))