From 1c2daa12a995b1385d14af681f1710cb6a010d49 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 9 Aug 2005 03:58:26 +0000 Subject: ** See bug #304938. 2005-08-08 Not Zed ** See bug #304938. * mail-ops.c (mail_send_message): don't try to dereference the transport if we don't have one. svn path=/trunk/; revision=30045 --- mail/ChangeLog | 7 +++++++ mail/mail-ops.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index a77528f860..abb638ef55 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2005-08-08 Not Zed + + ** 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 ** See bug #300881. diff --git a/mail/mail-ops.c b/mail/mail-ops.c index e888ab1ed1..57347b3f69 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -567,7 +567,8 @@ mail_send_message(CamelFolder *queue, const char *uid, const char *destination, 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)) { -- cgit v1.2.3