[evolution] Bug #689966 - MDN bar shown in Sent folder



commit 05a2e72079784ca3185502c69e8801a07b1a4867
Author: Milan Crha <mcrha redhat com>
Date:   Mon Dec 10 19:51:29 2012 +0100

    Bug #689966 - MDN bar shown in Sent folder

 modules/mdn/evolution-mdn.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/modules/mdn/evolution-mdn.c b/modules/mdn/evolution-mdn.c
index 7e75988..77cc6d6 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]