From 87aa40142de2368b487ad43be026279f45bbe7a4 Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 20 Jul 2005 19:30:53 +0000 Subject: [PATCH] Make sure mailboxnames like INBOX_Blah doesn't match on our INBOX detection regular expression. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9803 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 4cf256cc..827a83dc 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -924,7 +924,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_cmd.*\s\"?INBOX\"?[^(\/\.)].*$/i",$lsub_ary[$i])) { + if (preg_match("/^\*\s+$lsub_cmd.*\s\"?INBOX\"?\s*$/i",$lsub_ary[$i])) { $lsub_ary[$i] = strtoupper($lsub_ary[$i]); // in case of an unsubscribed inbox an imap server can // return the inbox in the lsub results with a \NoSelect -- 2.25.1