diff options
Diffstat (limited to 'program/steps/mail/list.inc')
-rw-r--r-- | program/steps/mail/list.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/mail/list.inc b/program/steps/mail/list.inc index 0ddf5cc11..1e9ce926b 100644 --- a/program/steps/mail/list.inc +++ b/program/steps/mail/list.inc @@ -20,7 +20,9 @@ */ $REMOTE_REQUEST = TRUE; +$OUTPUT_TYPE = 'js'; +$unseen = $IMAP->messagecount($mbox, 'UNSEEN', !empty($_GET['_refresh']) ? TRUE : FALSE); $count = $IMAP->messagecount(); // update message count display @@ -31,7 +33,7 @@ $commands .= sprintf("this.set_rowcount('%s');\n", rcmail_get_messagecount_text( // update mailboxlist $mbox = $IMAP->get_mailbox_name(); -$commands .= sprintf("this.set_unread_count('%s', %d);\n", $mbox, $IMAP->messagecount($mbox, 'UNSEEN')); +$commands .= sprintf("this.set_unread_count('%s', %d);\n", addslashes($mbox), $unseen); // add message rows |