[evolution-patches] 304938, mail, crash sending news



simple bug introduced with the disable-sent-folder thing.

-- 
adfa(evolution-2.4:20087): gtkhtml-WARNING **: cannot find icon:
'stock_insert-url' in gnome 
Index: mail/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3681
diff -u -p -r1.3681 ChangeLog
--- mail/ChangeLog	8 Aug 2005 09:02:24 -0000	1.3681
+++ mail/ChangeLog	8 Aug 2005 09:37:09 -0000
@@ -1,3 +1,10 @@
+2005-08-08  Not Zed  <NotZed Ximian com>
+
+	** See bug #304938.
+
+	* mail-ops.c (mail_send_message): don't try to dereference the
+	transport if we don't have one.
+
 2005-08-04  Not Zed  <NotZed Ximian com>
 
 	** See bug #300881.
Index: mail/mail-ops.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-ops.c,v
retrieving revision 1.449
diff -u -p -r1.449 mail-ops.c
--- mail/mail-ops.c	29 Jul 2005 06:55:36 -0000	1.449
+++ mail/mail-ops.c	8 Aug 2005 09:37:09 -0000
@@ -567,7 +567,8 @@ mail_send_message(CamelFolder *queue, co
 	
 	camel_exception_clear (ex);
 
-	if (!( ((CamelService *)xport)->provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER)) {	
+	if (xport == NULL
+	    || !( ((CamelService *)xport)->provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER)) {	
 		if (sent_folder_uri) {
 			folder = mail_tool_uri_to_folder (sent_folder_uri, 0, ex);
 			if (camel_exception_is_set(ex)) {


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