summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-05 21:39:08 +0000
committerthomascube <thomas@roundcube.net>2008-02-05 21:39:08 +0000
commitcf1f0f97b23e1d22ee087436edc283da59bfb6ce (patch)
tree5868c142caf39d1b05d2231b7b41f0324b7861de /program/steps
parenta527781d5ae365c926c137a6c59895421aeab951 (diff)
Applied patch for updating page title (#1484727, #1484650)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/check_recent.inc2
-rw-r--r--program/steps/mail/getunread.inc2
-rw-r--r--program/steps/mail/list.inc6
-rw-r--r--program/steps/mail/mark.inc2
-rw-r--r--program/steps/mail/move_del.inc2
5 files changed, 7 insertions, 7 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc
index a392cd0e6..3e0301613 100644
--- a/program/steps/mail/check_recent.inc
+++ b/program/steps/mail/check_recent.inc
@@ -35,7 +35,7 @@ foreach ($a_mailboxes as $mbox_name)
$unread_count = $IMAP->messagecount(NULL, 'UNSEEN', TRUE);
$OUTPUT->set_env('messagecount', $IMAP->messagecount());
- $OUTPUT->command('set_unread_count', $mbox_name, $unread_count, true);
+ $OUTPUT->command('set_unread_count', $mbox_name, $unread_count, ($mbox_name == 'INBOX'));
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text());
$OUTPUT->command('set_quota', $IMAP->get_quota());
diff --git a/program/steps/mail/getunread.inc b/program/steps/mail/getunread.inc
index ae12bc21c..b94a66b57 100644
--- a/program/steps/mail/getunread.inc
+++ b/program/steps/mail/getunread.inc
@@ -24,7 +24,7 @@ $a_folders = $IMAP->list_mailboxes();
if (!empty($a_folders))
{
foreach ($a_folders as $mbox_row)
- $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN'));
+ $OUTPUT->command('set_unread_count', $mbox_row, $IMAP->messagecount($mbox_row, 'UNSEEN'), ($IMAP->get_mailbox_name() == 'INBOX' && $mbox_row == 'INBOX'));
}
$OUTPUT->send();
diff --git a/program/steps/mail/list.inc b/program/steps/mail/list.inc
index 8caf4c06f..e2fafc2fc 100644
--- a/program/steps/mail/list.inc
+++ b/program/steps/mail/list.inc
@@ -52,9 +52,6 @@ $OUTPUT->set_env('messagecount', $count);
$OUTPUT->set_env('pagecount', $pages);
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count));
-// update mailboxlist
-$OUTPUT->command('set_unread_count', $mbox_name, $unseen);
-
// add message rows
if (isset($a_headers) && count($a_headers))
@@ -62,6 +59,9 @@ if (isset($a_headers) && count($a_headers))
else
$OUTPUT->show_message('nomessagesfound', 'notice');
+// update mailboxlist
+$OUTPUT->command('set_unread_count', $mbox_name, $unseen, ($mbox_name == 'INBOX'));
+
// send response
$OUTPUT->send();
diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc
index 74510abe9..53194b5ab 100644
--- a/program/steps/mail/mark.inc
+++ b/program/steps/mail/mark.inc
@@ -32,7 +32,7 @@ if (($uids = get_input_value('_uid', RCUBE_INPUT_POST)) && ($flag = get_input_va
if ($marked != -1)
{
$mbox_name = $IMAP->get_mailbox_name();
- $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'));
+ $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'), ($mbox_name == 'INBOX'));
$OUTPUT->send();
}
}
diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc
index c78d6db51..b6ec20773 100644
--- a/program/steps/mail/move_del.inc
+++ b/program/steps/mail/move_del.inc
@@ -86,7 +86,7 @@ $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($msg_count));
// update mailboxlist
$mbox = $IMAP->get_mailbox_name();
-$OUTPUT->command('set_unread_count', $mbox, $IMAP->messagecount($mbox, 'UNSEEN'));
+$OUTPUT->command('set_unread_count', $mbox, $IMAP->messagecount($mbox, 'UNSEEN'), ($mbox == 'INBOX'));
if ($_action=='moveto' && $target)
$OUTPUT->command('set_unread_count', $target, $IMAP->messagecount($target, 'UNSEEN'));