From: kink Date: Wed, 25 Feb 2004 17:28:39 +0000 (+0000) Subject: Tweak the LSUB INBOX regexp to allow for only 1 space between LSUB and X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6e097fb53cbf92507816803f9a7c0fa3a7cbac53;p=squirrelmail.git Tweak the LSUB INBOX regexp to allow for only 1 space between LSUB and the mailbox name. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6663 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 768cc8c2..54577b8e 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -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;