aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index fe404a0d20..88269a4ccc 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1131,7 +1131,7 @@ em_utils_handle_receipt (CamelFolder *folder, const char *uid, CamelMimeMessage
addr++;
}
- if (account->receipt_policy == E_ACCOUNT_RECEIPT_ALWAYS
+ if (account && account->receipt_policy == E_ACCOUNT_RECEIPT_ALWAYS
|| (account->receipt_policy == E_ACCOUNT_RECEIPT_ASK
&& e_error_run (NULL, "mail:ask-receipt", addr, camel_mime_message_get_subject(msg)) == GTK_RESPONSE_YES))
em_utils_send_receipt(folder, msg);