diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-03-16 04:09:56 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-03-16 04:09:56 +0800 |
commit | 318745008057357532ccae26fbff18401e9ff5b3 (patch) | |
tree | 366c9e4fd4c0825ae037490b50b0b2e08ce1d707 /mail/em-utils.c | |
parent | cd0e8a05bb32ff72bb7014d50ad7a97472dc9a69 (diff) | |
download | gsoc2013-evolution-318745008057357532ccae26fbff18401e9ff5b3.tar.gz gsoc2013-evolution-318745008057357532ccae26fbff18401e9ff5b3.tar.zst gsoc2013-evolution-318745008057357532ccae26fbff18401e9ff5b3.zip |
If the mail_get_message() async op fails, it will still call us with a
2004-03-15 Jeffrey Stedfast <fejj@ximian.com>
* em-utils.c (reply_to_message): If the mail_get_message() async
op fails, it will still call us with a NULL message to check for
that. Fixes bug #55612.
(post_reply_to_message): Same.
svn path=/trunk/; revision=25081
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 306bd0474c..6e79386f37 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1213,6 +1213,9 @@ reply_to_message (CamelFolder *folder, const char *uid, CamelMimeMessage *messag guint32 flags; int mode; + if (message == NULL) + return; + mode = GPOINTER_TO_INT (user_data); account = guess_account (message, folder); @@ -1281,6 +1284,9 @@ post_reply_to_message (CamelFolder *folder, const char *uid, CamelMimeMessage *m EAccount *account; guint32 flags; + if (message == NULL) + return; + account = guess_account (message, folder); flags = CAMEL_MESSAGE_ANSWERED | CAMEL_MESSAGE_SEEN; |