summaryrefslogtreecommitdiff
path: root/program/steps/mail/list.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-10-16 19:14:00 +0000
committerthomascube <thomas@roundcube.net>2005-10-16 19:14:00 +0000
commitcd900dd71f56698b2c8ffedeb1af342e79faf0db (patch)
tree910d16436eb8d0979cac6849a631956b140ad90d /program/steps/mail/list.inc
parent9fee0ed9af6bb1daa3af2ff7290f5589040b4821 (diff)
Improved folder display; added Portuguese and Catalan translation
Diffstat (limited to 'program/steps/mail/list.inc')
-rw-r--r--program/steps/mail/list.inc4
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