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 d0252d68e22f0aa9345f1fe608a41e2927089d1b..784d9216ad341a5b8195761f0f7b761fa3be39b6 100755 (executable)
             $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]))