+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)
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;
}
gw_store->current_folder = folder;
}
- gw_update_cache (folder, list, ex);
+ if (list)
+ gw_update_cache (folder, list, ex);
/*