[evolution-patches] (groupwise) patch for bugs 72310 and 73318



hi,
the attached patch fixes the problem of Trash folder not refreshing. The
bug ids associated are 72310 and 73318

Thanks,
partha
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/ChangeLog,v
retrieving revision 1.44
diff -u -p -r1.44 ChangeLog
--- ChangeLog	1 Apr 2005 10:24:53 -0000	1.44
+++ ChangeLog	1 Apr 2005 14:00:09 -0000
@@ -1,3 +1,13 @@
+2005-04-01  Parthasarathi Susarla <sparthasarathi novell com>
+
+	* camel-groupwise-folder.c: (groupwise_refresh_info):
+	  The Trash folder in the groupwise server works well
+	  only with getItems request. So we compare the folder
+	  name (?) and if it is a trash folder, we use getItems
+	  instead of getQuickMessages. 
+
+	  Fixes bugs **72310 and **73318
+
 2005-03-31  Sankar P <psankar novell com>
 
 	* camel-groupwise-folder.c: 
Index: camel-groupwise-folder.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/camel-groupwise-folder.c,v
retrieving revision 1.45
diff -u -p -r1.45 camel-groupwise-folder.c
--- camel-groupwise-folder.c	1 Apr 2005 10:24:53 -0000	1.45
+++ camel-groupwise-folder.c	1 Apr 2005 14:00:09 -0000
@@ -659,10 +659,25 @@ groupwise_refresh_info(CamelFolder *fold
 		gw_folder->need_refresh = TRUE ;
 	}
 
+	CAMEL_SERVICE_LOCK (gw_store, connect_lock);
+	if (!strcmp(folder->name,"Trash")) {
+		status = e_gw_connection_get_items (cnc, container_id, "recipient distribution created attachments subject status", NULL, &list) ;
+		if (status != E_GW_CONNECTION_STATUS_OK) {
+			camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Authentication failed"));
+			CAMEL_SERVICE_UNLOCK (gw_store, connect_lock);
+			g_free (container_id) ;
+			camel_operation_end (NULL);
+			return ;
+		}
+		
+		gw_update_summary (folder, list, ex) ;
+		goto end;
+
+	}
+
 	time_string =  g_strdup (((CamelGroupwiseSummary *) folder->summary)->time_string);
 	t_str = g_strdup (time_string);
 
-	CAMEL_SERVICE_LOCK (gw_store, connect_lock);
 	/* FIXME send the time stamp which the server sends */
 	status = e_gw_connection_get_quick_messages (cnc, container_id,
 					"peek recipient distribution created attachments subject status",
@@ -710,16 +725,17 @@ groupwise_refresh_info(CamelFolder *fold
 
 	gw_update_summary (folder, list, ex) ;
 
-	CAMEL_SERVICE_UNLOCK (gw_store, connect_lock);
-
-	camel_folder_summary_save (folder->summary);
-	
 	g_slist_free (slist);
 	slist = NULL;
+	g_free (time_string);
+end:
+	CAMEL_SERVICE_UNLOCK (gw_store, connect_lock);
+
 	g_list_free (list);
 	list = NULL;
-	g_free (time_string);
 	g_free (container_id);
+	
+	camel_folder_summary_save (folder->summary);
 
 	return ;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]