Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/ChangeLog,v
retrieving revision 1.85
diff -u -p -r1.85 ChangeLog
--- ChangeLog	9 Aug 2005 05:41:50 -0000	1.85
+++ ChangeLog	9 Aug 2005 15:11:40 -0000
@@ -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-04-17  Changwoo Ryu  <cwryu@debian.org>
 
 	** See bug #300891
Index: camel-groupwise-folder.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/camel-groupwise-folder.c,v
retrieving revision 1.71
diff -u -p -r1.71 camel-groupwise-folder.c
--- camel-groupwise-folder.c	4 Aug 2005 13:40:16 -0000	1.71
+++ camel-groupwise-folder.c	9 Aug 2005 15:11:46 -0000
@@ -797,12 +797,13 @@ groupwise_refresh_folder(CamelFolder *fo
 			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 *fo
 		gw_store->current_folder = folder;
 	}
 
-	gw_update_cache (folder, list, ex);
+	if (list)
+		gw_update_cache (folder, list, ex);
 	
 
 	/*
