Tweak the LSUB INBOX regexp to allow for only 1 space between LSUB and
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 25 Feb 2004 17:28:39 +0000 (17:28 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 25 Feb 2004 17:28:39 +0000 (17:28 +0000)
the mailbox name.

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

functions/imap_mailbox.php

index 768cc8c2d0a83cd8b7714441039218a3cef14a19..54577b8e23d159aa219036478793a4b711ee8894 100755 (executable)
@@ -812,7 +812,7 @@ function sqimap_mailbox_tree($imap_stream) {
         $has_inbox = false;
 
         for ($i = 0, $cnt = count($lsub_ary); $i < $cnt; $i++) {
-            if (preg_match("/^\*\s+LSUB\s+(.*)\s\"?INBOX\"?[^(\/\.)].*$/i",$lsub_ary[$i])) {
+            if (preg_match("/^\*\s+LSUB.*\s\"?INBOX\"?[^(\/\.)].*$/i",$lsub_ary[$i])) {
                $lsub_ary[$i] = strtoupper($lsub_ary[$i]);
                 $has_inbox = true;
                 break;