diff options
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/mail-ops.c | 3 |
2 files changed, 9 insertions, 1 deletions
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 <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. 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)) { |