summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-03-10 08:09:33 +0000
committerthomascube <thomas@roundcube.net>2009-03-10 08:09:33 +0000
commit48ee693f495f6826ed32333e8a564376487f1dea (patch)
treebbb0dc217107f85b6c3cf521b0135cc2720f86e9 /program/steps/mail
parentc762c07ce9180f4a6a324c46f0ec5e47cd91fd68 (diff)
Partially reverted r2339 + fix indentation
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/check_recent.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc
index 438e97bdb..a0668537d 100644
--- a/program/steps/mail/check_recent.inc
+++ b/program/steps/mail/check_recent.inc
@@ -28,7 +28,7 @@ foreach ($a_mailboxes as $mbox_name) {
// refresh saved search set
if (($search_request = get_input_value('_search', RCUBE_INPUT_GPC)) && isset($_SESSION['search'][$search_request])) {
$_SESSION['search'][$search_request] = $IMAP->refresh_search();
- $all_count = $IMAP->messagecount();
+ $all_count = $IMAP->messagecount();
} else {
$all_count = $IMAP->messagecount(NULL, 'ALL', TRUE);
}
@@ -62,12 +62,12 @@ foreach ($a_mailboxes as $mbox_name) {
// get the headers
$result_h = $IMAP->list_headers($mbox_name, 1, 'date', 'DESC');
// add to the list
- rcmail_js_message_list($result_h, TRUE);
+ rcmail_js_message_list($result_h, TRUE);
}
}
}
- else if ($IMAP->messagecount($mbox_name, 'UNSEEN', $check_all)) {
- $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN', $check_all));
+ else if ($unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', $check_all)) {
+ $OUTPUT->command('set_unread_count', $mbox_name, $unseen);
}
}