From 91790e41f3fa307658077043bc2fa5f71e270cf4 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Tue, 09 Feb 2010 08:10:12 -0500 Subject: [PATCH] - Fix attachment excessive memory use, support messages of any size (#1484660) --- program/steps/mail/check_recent.inc | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index 58a8e7e..7533040 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -15,7 +15,7 @@ | Author: Thomas Bruederli <roundcube@gmail.com> | +-----------------------------------------------------------------------+ - $Id: check_recent.inc 233 2006-06-26 17:31:20Z richs $ + $Id$ */ @@ -34,6 +34,7 @@ } $unread_count = $IMAP->messagecount(NULL, 'UNSEEN', TRUE); + $_SESSION['unseen_count'][$mbox_name] = $unread_count; $OUTPUT->set_env('messagecount', $all_count); $OUTPUT->set_env('pagesize', $IMAP->page_size); @@ -45,7 +46,7 @@ $OUTPUT->command('new_message_focus'); if (!empty($_GET['_quota'])) - $OUTPUT->command('set_quota', rcmail_quota_content($IMAP->get_quota())); + $OUTPUT->command('set_quota', rcmail_quota_content()); // trigger plugin hook $RCMAIL->plugins->exec_hook('new_messages', array('mailbox' => $mbox_name, 'count' => $unread_count)); -- Gitblit v1.9.1