From 65a843e4d7f6ae5a209899e38b187f38070f1816 Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Thu, 2 Feb 2006 05:14:15 +0000 Subject: check if account is null before accessing it 2006-02-02 Parthasarathi Susarla * em-composer-utils.c: (em_utils_handle_receipt): check if account is null before accessing it svn path=/trunk/; revision=31399 --- mail/ChangeLog | 5 +++++ mail/em-composer-utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index e7400fdd1d..0b6eae3641 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2006-02-02 Parthasarathi Susarla + + * em-composer-utils.c: (em_utils_handle_receipt): + check if account is null before accessing it + 2006-01-30 Harish Krishnaswamy * mail-config.glade: s/T_erminal/Fi_xed width/ for consistency with other 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); -- cgit v1.2.3