summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-02 17:26:16 +0000
committeralecpl <alec@alec.pl>2008-10-02 17:26:16 +0000
commit2c832e451988be00e07c8ba1cc4ff8b5389feced (patch)
treef834db0bf5b2bf7762abbaf4b09663be4f2ea54b /program/steps
parent4683bf1640f964c16f656c1b0858e4aade4f5837 (diff)
- small improvement in getunread.inc + fix: don't call msglist_select() for getunread and check-recent actions
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/getunread.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/getunread.inc b/program/steps/mail/getunread.inc
index b94a66b57..145930c49 100644
--- a/program/steps/mail/getunread.inc
+++ b/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();