]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/steps/mail/list.inc
Imported Upstream version 0.7
[roundcube.git] / program / steps / mail / list.inc
index 70d7508a56accb67aacd5977976f8059627e1375..3505d481ac1d98db4f30aea1aa27838597efb6f2 100644 (file)
@@ -15,7 +15,7 @@
  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
  +-----------------------------------------------------------------------+
 
- $Id: list.inc 4410 2011-01-12 18:25:02Z thomasb $
+ $Id: list.inc 5266 2011-09-22 07:49:33Z alec $
 
 */
 
@@ -53,6 +53,9 @@ if ($save_arr)
 
 $mbox_name = $IMAP->get_mailbox_name();
 
+// Synchronize mailbox cache, handle flag changes
+$IMAP->mailbox_sync($mbox_name);
+
 // initialize searching result if search_filter is used
 if ($_SESSION['search_filter'] && $_SESSION['search_filter'] != 'ALL')
 {
@@ -93,7 +96,7 @@ $OUTPUT->set_env('messagecount', $count);
 $OUTPUT->set_env('pagecount', $pages);
 $OUTPUT->set_env('threading', (bool) $IMAP->threading);
 $OUTPUT->set_env('current_page', $count ? $IMAP->list_page : 1);
-$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count));
+$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count), $mbox_name);
 $OUTPUT->command('set_mailboxname', rcmail_get_mailbox_name_text());
 
 // add message rows
@@ -116,5 +119,3 @@ else {
 
 // send response
 $OUTPUT->send();
-
-