aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-08-10 02:54:45 +0800
committerDan Winship <danw@src.gnome.org>2002-08-10 02:54:45 +0800
commitd6c5e8db0d5d179a552cde5f7add078a70d521d6 (patch)
tree4e41841bf5b0d57001aac2da832a52ddcc961acd /mail/mail-callbacks.c
parent6bea7d339a521864a0f5984a00c5039476b38b24 (diff)
downloadgsoc2013-evolution-d6c5e8db0d5d179a552cde5f7add078a70d521d6.tar.gz
gsoc2013-evolution-d6c5e8db0d5d179a552cde5f7add078a70d521d6.tar.zst
gsoc2013-evolution-d6c5e8db0d5d179a552cde5f7add078a70d521d6.zip
Handle the fact that ccd may be NULL (if the composer was created via
* mail-callbacks.c (composer_send_queued_cb, save_draft_done): Handle the fact that ccd may be NULL (if the composer was created via CORBA). Quick temporary fix for sending meeting requests. svn path=/trunk/; revision=17754
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 4f42b1207c..0fa94b7f9d 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -363,7 +363,7 @@ composer_send_queued_cb (CamelFolder *folder, CamelMimeMessage *msg, CamelMessag
ccd = send->ccd;
if (queued) {
- if (ccd->drafts_folder) {
+ if (ccd && ccd->drafts_folder) {
/* delete the old draft message */
camel_folder_set_message_flags (ccd->drafts_folder, ccd->drafts_uid,
CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_SEEN,
@@ -374,7 +374,7 @@ composer_send_queued_cb (CamelFolder *folder, CamelMimeMessage *msg, CamelMessag
ccd->drafts_uid = NULL;
}
- if (ccd->folder) {
+ if (ccd && ccd->folder) {
/* set any replied flags etc */
camel_folder_set_message_flags (ccd->folder, ccd->uid, ccd->flags, ccd->set);
camel_object_unref (ccd->folder);
@@ -614,7 +614,7 @@ save_draft_done (CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *i
ccd = sdi->ccd;
- if (ccd->drafts_folder) {
+ if (ccd && ccd->drafts_folder) {
/* delete the original draft message */
camel_folder_set_message_flags (ccd->drafts_folder, ccd->drafts_uid,
CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_SEEN,
@@ -625,7 +625,7 @@ save_draft_done (CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *i
ccd->drafts_uid = NULL;
}
- if (ccd->folder) {
+ if (ccd && ccd->folder) {
/* set the replied flags etc */
camel_folder_set_message_flags (ccd->folder, ccd->uid, ccd->flags, ccd->set);
camel_object_unref (ccd->folder);
@@ -634,7 +634,7 @@ save_draft_done (CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *i
ccd->uid = NULL;
}
- if (appended_uid) {
+ if (ccd && appended_uid) {
camel_object_ref (folder);
ccd->drafts_folder = folder;
ccd->drafts_uid = g_strdup (appended_uid);