[evolution] [Mark-All-Read] Save changes to the server immediately



commit 43d5e818c9ec273266fd68c86a3466fb33abd961
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 4 08:25:12 2014 +0100

    [Mark-All-Read] Save changes to the server immediately

 modules/mail/e-mail-shell-view-actions.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 292aa96..4da4c3f 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -546,6 +546,9 @@ mark_all_read_thread (GSimpleAsyncResult *simple,
 
                camel_folder_thaw (folder);
 
+               /* Save changes to the server immediately. */
+               camel_folder_synchronize_sync (folder, FALSE, cancellable, &error);
+
                camel_folder_free_uids (folder, uids);
                g_object_unref (folder);
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]