From cead5c727147faac362e742aa7bcecf07f68cd99 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Thu, 18 May 2006 17:24:42 -0400 Subject: [PATCH] Updated CHANGELOG --- program/steps/mail/check_recent.inc | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index 3d0ceb2..8a563c4 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -20,17 +20,18 @@ */ $REMOTE_REQUEST = TRUE; -$mbox = $IMAP->get_mailbox_name(); +$mbox_name = $IMAP->get_mailbox_name(); if ($recent_count = $IMAP->messagecount(NULL, 'RECENT', TRUE)) { $count = $IMAP->messagecount(); $unread_count = $IMAP->messagecount(NULL, 'UNSEEN', TRUE); - $commands = sprintf("this.set_unread_count('%s', %d, true);\n", addslashes($mbox), $unread_count); + $commands = sprintf("this.set_unread_count('%s', %d, true);\n", addslashes($mbox_name), $unread_count); $commands .= sprintf("this.set_env('messagecount', %d);\n", $count); $commands .= sprintf("this.set_rowcount('%s');\n", rcmail_get_messagecount_text()); - + $commands .= sprintf("this.set_quota('%s');\n", $IMAP->get_quota()); + // add new message headers to list $a_headers = array(); for ($i=$recent_count, $id=$count-$recent_count+1; $i>0; $i--, $id++) @@ -39,9 +40,9 @@ $commands .= rcmail_js_message_list($a_headers, TRUE); } -if (strtoupper($mbox)!='INBOX' && $IMAP->messagecount('INBOX', 'RECENT')) +if (strtoupper($mbox_name)!='INBOX' && $IMAP->messagecount('INBOX', 'RECENT')) $commands = sprintf("this.set_unread_count('INBOX', %d);\n", $IMAP->messagecount('INBOX', 'UNSEEN')); rcube_remote_response($commands); -?> \ No newline at end of file +?> -- Gitblit v1.9.1