From 407ec6bce781f5ec60d75c766117587b14c9c4f1 Mon Sep 17 00:00:00 2001 From: robsiemb Date: Tue, 17 Sep 2002 20:48:06 +0000 Subject: [PATCH] don't STATUS a mailbox that isn't selectable git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3691 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 538c00c1..f0055440 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -795,7 +795,9 @@ function sqimap_mailbox_tree($imap_stream) { if (($unseen_notify == 2 && $mbx == 'INBOX') || $unseen_notify == 3 || ($move_to_trash && ($mbx == $trash_folder))) { - $sorted_lsub_ary[$i]['unseen'] = sqimap_unseen_messages($imap_stream, $mbx); + $sorted_lsub_ary[$i]['unseen'] = + $sorted_lsub_ary[$i]['noselect'] ? + 0 : sqimap_unseen_messages($imap_stream, $mbx); if ($unseen_type == 2 || ($move_to_trash && ($mbx == $trash_folder) )) { $sorted_lsub_ary[$i]['nummessages'] = sqimap_get_num_messages($imap_stream, $mbx); -- 2.25.1