[evolution-patches] camel-groupwise: Patch to retain unsent items in Outbox



Hi,

The attached patch tries to set an exception when a mail cannot be
delivered for a GroupWise account. Thus helping to retain unsent items
in Outbox. Fixes #302968

Please review it.

Thanks,
Sankar
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/ChangeLog,v
retrieving revision 1.69
diff -u -p -r1.69 ChangeLog
--- ChangeLog	25 Jul 2005 10:16:05 -0000	1.69
+++ ChangeLog	27 Jul 2005 05:03:41 -0000
@@ -1,3 +1,10 @@
+2005-07-27  Sankar P  <psankar novell com>
+
+	* camel-groupwise-transport.c: (groupwise_send_to)
+	Setting an exception if delivery fails, so as to 
+	retain unsent items in Outbox.
+	Fixes #302968
+	
 2005-07-25  Parthasarathi Susarla <sparthasarathi novell com>
 	
 	* camel-groupwise-folder.c: (groupwise_folder_item_to_msg)
Index: camel-groupwise-transport.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/camel-groupwise-transport.c,v
retrieving revision 1.15
diff -u -p -r1.15 camel-groupwise-transport.c
--- camel-groupwise-transport.c	8 Jul 2005 04:27:20 -0000	1.15
+++ camel-groupwise-transport.c	27 Jul 2005 05:03:41 -0000
@@ -165,6 +165,7 @@ groupwise_send_to (CamelTransport *trans
 	if (!store) {
 		g_error ("ERROR: Could not get a pointer to the store") ;
 		camel_operation_end (NULL) ;
+		camel_exception_set (ex, CAMEL_EXCEPTION_STORE_INVALID, _("Cannot get folder: Invalid operation on this store"));
 		return FALSE ;
 	}
 	groupwise_store = CAMEL_GROUPWISE_STORE (store) ;
@@ -207,6 +208,7 @@ groupwise_send_to (CamelTransport *trans
 		camel_operation_end (NULL) ;
 		g_object_unref (item) ;
 		g_object_unref (temp_item);
+		camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, _("Unknown error"));
 		return FALSE ;
 	}
 	e_gw_item_set_link_info (item, NULL);


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