From: Parthasarathi Susarla Date: Tue, 9 Aug 2005 15:29:23 +0000 (+0000) Subject: ** see bug #312857 X-Git-Tag: upstream/3.7.4~7077 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfb12f2d50fc91c564639356caef56dd9e0d303f;p=platform%2Fupstream%2Fevolution-data-server.git ** see bug #312857 2005-08-09 Parthasarathi Susarla ** see bug #312857 * camel-groupwise-folder.c: (groupwise_refresh_folder): update summary only if there are new/modified items --- diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog index c86a26e..0e19b94 100644 --- a/camel/providers/groupwise/ChangeLog +++ b/camel/providers/groupwise/ChangeLog @@ -1,3 +1,10 @@ +2005-08-09 Parthasarathi Susarla + + ** see bug #312857 + + * camel-groupwise-folder.c: (groupwise_refresh_folder): + update summary only if there are new/modified items + 2005-08-09 Vivek Jain * camel-groupwise-utils.c : (camel_groupwise_util_item_from_message) diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c index fff83a2..1f47096 100644 --- a/camel/providers/groupwise/camel-groupwise-folder.c +++ b/camel/providers/groupwise/camel-groupwise-folder.c @@ -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); /*