From cd900dd71f56698b2c8ffedeb1af342e79faf0db Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Sun, 16 Oct 2005 15:14:00 -0400 Subject: [PATCH] Improved folder display; added Portuguese and Catalan translation --- 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 0ddf5cc..1e9ce92 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 @@ // 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 -- Gitblit v1.9.1