summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-02 17:26:16 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-02 17:26:16 +0000
commit39042768014dfff00d26027a10f9a1d9e39c2e88 (patch)
tree96d1db62c77b20443083a30c70b0a8d5a118187e /roundcubemail/program/steps
parentb2dfd744e759715cd43bf4065a0e741945fa887e (diff)
- small improvement in getunread.inc + fix: don't call msglist_select() for getunread and check-recent actions
git-svn-id: https://svn.roundcube.net/trunk@1917 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/getunread.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/getunread.inc b/roundcubemail/program/steps/mail/getunread.inc
index b94a66b57..145930c49 100644
--- a/roundcubemail/program/steps/mail/getunread.inc
+++ b/roundcubemail/program/steps/mail/getunread.inc
@@ -23,8 +23,9 @@ $a_folders = $IMAP->list_mailboxes();
if (!empty($a_folders))
{
+ $inbox = ($IMAP->get_mailbox_name() == 'INBOX');
foreach ($a_folders as $mbox_row)
- $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN'), ($IMAP->get_mailbox_name() == 'INBOX' && $mbox_row == 'INBOX'));
+ $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN'), $inbox && $mbox_row == 'INBOX');
}
$OUTPUT->send();