aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-03-16 04:09:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-03-16 04:09:56 +0800
commit318745008057357532ccae26fbff18401e9ff5b3 (patch)
tree366c9e4fd4c0825ae037490b50b0b2e08ce1d707 /mail
parentcd0e8a05bb32ff72bb7014d50ad7a97472dc9a69 (diff)
downloadgsoc2013-evolution-318745008057357532ccae26fbff18401e9ff5b3.tar
gsoc2013-evolution-318745008057357532ccae26fbff18401e9ff5b3.tar.gz
gsoc2013-evolution-318745008057357532ccae26fbff18401e9ff5b3.tar.bz2
gsoc2013-evolution-318745008057357532ccae26fbff18401e9ff5b3.tar.lz
gsoc2013-evolution-318745008057357532ccae26fbff18401e9ff5b3.tar.xz
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')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-utils.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 9cfdb92dcb..a46a285cf7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
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.
+
* em-folder-tree.c (emft_copy_folders__copy): Use
camel_store_rename_folder() when appropriate (m->tostore ==
m->fromstore && m->delete)
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;