From 05a2e72079784ca3185502c69e8801a07b1a4867 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 10 Dec 2012 19:51:29 +0100 Subject: Bug #689966 - MDN bar shown in Sent folder --- modules/mdn/evolution-mdn.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/mdn/evolution-mdn.c b/modules/mdn/evolution-mdn.c index 7e7598895d..77cc6d6f6f 100644 --- a/modules/mdn/evolution-mdn.c +++ b/modules/mdn/evolution-mdn.c @@ -516,8 +516,15 @@ mdn_message_loaded_cb (EMailReader *reader, if (notify_to == NULL) goto exit; + /* do not show the notice in special folders */ + if (em_utils_folder_is_drafts (registry, folder) || + em_utils_folder_is_templates (registry, folder) || + em_utils_folder_is_sent (registry, folder) || + em_utils_folder_is_outbox (registry, folder)) + goto exit; + /* This returns a new ESource reference. */ - source = em_utils_guess_mail_account_with_recipients ( + source = em_utils_guess_mail_identity_with_recipients ( registry, message, folder, message_uid); if (source == NULL) goto exit; @@ -607,7 +614,7 @@ mdn_message_seen_cb (EMailReader *reader, goto exit; /* This returns a new ESource reference. */ - source = em_utils_guess_mail_account_with_recipients ( + source = em_utils_guess_mail_identity_with_recipients ( registry, message, folder, message_uid); if (source == NULL) goto exit; -- cgit v1.2.3