** see bug #312857
authorParthasarathi Susarla <sparthasarathi@novell.com>
Tue, 9 Aug 2005 15:29:23 +0000 (15:29 +0000)
committerParthasarathi Susarla <saps@src.gnome.org>
Tue, 9 Aug 2005 15:29:23 +0000 (15:29 +0000)
2005-08-09  Parthasarathi Susarla <sparthasarathi@novell.com>

** see bug #312857

* camel-groupwise-folder.c: (groupwise_refresh_folder):
update summary only if there are new/modified items

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

index c86a26e..0e19b94 100644 (file)
@@ -1,3 +1,10 @@
+2005-08-09  Parthasarathi Susarla <sparthasarathi@novell.com>
+       
+       ** see bug #312857
+
+       * camel-groupwise-folder.c: (groupwise_refresh_folder):
+       update summary only if there are new/modified items
+
 2005-08-09 Vivek Jain <jvivek@novell.com>
 
        * camel-groupwise-utils.c : (camel_groupwise_util_item_from_message)
index fff83a2..1f47096 100644 (file)
@@ -797,12 +797,13 @@ groupwise_refresh_folder(CamelFolder *folder, CamelException *ex)
                        camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Authentication failed"));
                        goto end1;
                }
-               if (!list || !g_list_length(list))
+               if (!list || !g_list_length(list)) {
                        camel_folder_summary_clear (folder->summary);
-               gw_update_summary (folder, list, ex);
-               g_list_foreach (list, (GFunc) g_object_unref, NULL);
-               g_list_free (list);
-               list = NULL;
+                       gw_update_summary (folder, list, ex);
+                       g_list_foreach (list, (GFunc) g_object_unref, NULL);
+                       g_list_free (list);
+                       list = NULL;
+               }
                goto end1;
        }
 
@@ -855,7 +856,8 @@ groupwise_refresh_folder(CamelFolder *folder, CamelException *ex)
                gw_store->current_folder = folder;
        }
 
-       gw_update_cache (folder, list, ex);
+       if (list)
+               gw_update_cache (folder, list, ex);
        
 
        /*