[evolution-patches] (gropuwise) fix for bug 73897



Hi,
the attached patch fixes the bug 73897
(http://bugzilla.ximian.com/show_bug.cgi?id=73897)

Thanks,
-partha
Index: camel-groupwise-folder.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/camel-groupwise-folder.c,v
retrieving revision 1.32.4.1
diff -u -p -r1.32.4.1 camel-groupwise-folder.c
--- camel-groupwise-folder.c	15 Mar 2005 01:35:28 -0000	1.32.4.1
+++ camel-groupwise-folder.c	29 Mar 2005 09:10:25 -0000
@@ -976,13 +981,14 @@ groupwise_transfer_messages_to (CamelFol
 	while (index < uids->len) {
 		status = e_gw_connection_move_item (cnc, (const char *)uids->pdata[index], 
 				                    dest_container_id, source_container_id) ;
-		if (status != E_GW_CONNECTION_STATUS_OK) {
+		if (status == E_GW_CONNECTION_STATUS_OK) {
+			if (delete_originals) {
+				camel_folder_set_message_flags (source, (const char *)uids->pdata[index],
+						CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED);
+			}
+		} else {
 			g_print ("Warning!! Could not move item : %s\n", (char *)uids->pdata[index]) ;
 		}
-		if (delete_originals) {
-			camel_folder_set_message_flags (source, (const char *)uids->pdata[index],
-					CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED);
-		}
 		index ++;
 	}
 	camel_folder_summary_touch (source->summary) ;


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