don't STATUS a mailbox that isn't selectable
This commit is contained in:
parent
857c227d54
commit
afb51c2333
1 changed files with 3 additions and 1 deletions
|
@ -795,7 +795,9 @@ function sqimap_mailbox_tree($imap_stream) {
|
||||||
if (($unseen_notify == 2 && $mbx == 'INBOX')
|
if (($unseen_notify == 2 && $mbx == 'INBOX')
|
||||||
|| $unseen_notify == 3
|
|| $unseen_notify == 3
|
||||||
|| ($move_to_trash && ($mbx == $trash_folder))) {
|
|| ($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
|
if ($unseen_type == 2 || ($move_to_trash
|
||||||
&& ($mbx == $trash_folder) )) {
|
&& ($mbx == $trash_folder) )) {
|
||||||
$sorted_lsub_ary[$i]['nummessages'] = sqimap_get_num_messages($imap_stream, $mbx);
|
$sorted_lsub_ary[$i]['nummessages'] = sqimap_get_num_messages($imap_stream, $mbx);
|
||||||
|
|
Loading…
Add table
Reference in a new issue