Sync up the flags before updating the changes.
authorSankar P <psankar@novell.com>
Mon, 17 Apr 2006 10:26:16 +0000 (10:26 +0000)
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>
Mon, 17 Apr 2006 10:26:16 +0000 (10:26 +0000)
2006-04-17  Sankar P  <psankar@novell.com>

* camel-groupwise-folder.c: (groupwise_refresh_folder)
Sync up the flags before updating the changes.

camel/providers/groupwise/ChangeLog
camel/providers/groupwise/camel-groupwise-folder.c

index 26f6769..07aec2f 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-17  Sankar P  <psankar@novell.com>
+
+       * camel-groupwise-folder.c: (groupwise_refresh_folder)
+       Sync up the flags before updating the changes.
+
 2006-04-06 Parthasarathi Susarla  <sparthasarathi@novell.com>
 
        * camel-groupwise-folder.c : (gw_update_cache)
index ccd2679..ea972dc 100644 (file)
@@ -587,6 +587,10 @@ groupwise_sync (CamelFolder *folder, gboolean expunge, CamelException *ex)
        EGwConnection *cnc;
        int count, i;
 
+       /* Sync-up the (un)read changes before getting updates,
+       so that the getFolderList will reflect the most recent changes too */
+       groupwise_sync (folder, FALSE, ex);
+       
        if (((CamelOfflineStore *) gw_store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL || 
                        ((CamelService *)gw_store)->status == CAMEL_SERVICE_DISCONNECTED) {
                groupwise_sync_summary (folder, ex);