From 6e097fb53cbf92507816803f9a7c0fa3a7cbac53 Mon Sep 17 00:00:00 2001 From: kink Date: Wed, 25 Feb 2004 17:28:39 +0000 Subject: [PATCH] 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 --- functions/imap_mailbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1