* :-) The first letter of matching folders had their head removed!
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 25 Feb 2001 05:47:25 +0000 (05:47 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 25 Feb 2001 05:47:25 +0000 (05:47 +0000)
  (one char too many trimmed)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1159 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index 22d4b916c7475774101e5db89a2891cfd442abfe..9ada3fa703a8982a339ea900e934bfdce01f24f5 100755 (executable)
          $boxes[$g]['unformatted'] = $mailbox;
          //$boxes[$g]['unformatted-disp'] = ereg_replace('^' . $folder_prefix, '', $mailbox);
          if (substr($mailbox,0,strlen($folder_prefix))==$folder_prefix) { 
-            $boxes[$g]['unformatted-disp'] = substr($mailbox, strlen($folder_prefix)+1); 
+            $boxes[$g]['unformatted-disp'] = substr($mailbox, strlen($folder_prefix));
          }
          $boxes[$g]['id'] = $g;