[evolution-patches] patch to save a crash (groupwise)



when we are trying to send a mail from an account which is not enabled,
there is the possibility we don't have store for that account and we
have to stop the operation from being proceeded, use g_warning instead
of g_error to get an exception without crash.

Thanks,
Vivek Jain
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/ChangeLog,v
retrieving revision 1.78
diff -u -p -r1.78 ChangeLog
--- ChangeLog	2 Aug 2005 10:50:06 -0000	1.78
+++ ChangeLog	2 Aug 2005 10:53:39 -0000
@@ -1,5 +1,11 @@
 2005-08-02 Vivek Jain <jvivek novell com>
 	
+	* camel-groupwise-transport.c: (groupwise_send_to)
+	if account is not even enabled we don't have that store.
+	g_error crashes evolution for that, use g_warning
+
+2005-08-02 Vivek Jain <jvivek novell com>
+	
 	* camel-groupwise-folder.c: (transfer_messages_to)
 	check for the flags to be reset while transferring to/from junk
 	folder.
Index: camel-groupwise-transport.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/providers/groupwise/camel-groupwise-transport.c,v
retrieving revision 1.16
diff -u -p -r1.16 camel-groupwise-transport.c
--- camel-groupwise-transport.c	27 Jul 2005 09:23:18 -0000	1.16
+++ camel-groupwise-transport.c	2 Aug 2005 10:53:39 -0000
@@ -163,7 +163,7 @@ groupwise_send_to (CamelTransport *trans
 	/*camel groupwise store and cnc*/
 	store = camel_session_get_store (service->session, url, ex ) ;
 	if (!store) {
-		g_error ("ERROR: Could not get a pointer to the store") ;
+		g_warning ("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 ;


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