aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-12-11 02:52:04 +0800
committerMilan Crha <mcrha@redhat.com>2012-12-11 02:52:04 +0800
commitd7ec3ffaabf1c3b3a860831e429d4a0942207f87 (patch)
tree86ee1577add0bcdd49ee11af07a0102b1e5cb40e
parentb46bab510459893dbea09e31233d981c3591621a (diff)
downloadgsoc2013-evolution-d7ec3ffaabf1c3b3a860831e429d4a0942207f87.tar.gz
gsoc2013-evolution-d7ec3ffaabf1c3b3a860831e429d4a0942207f87.tar.zst
gsoc2013-evolution-d7ec3ffaabf1c3b3a860831e429d4a0942207f87.zip
Bug #689966 - MDN bar shown in Sent folder
-rw-r--r--modules/mdn/evolution-mdn.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/mdn/evolution-mdn.c b/modules/mdn/evolution-mdn.c
index 03abc00d24..71f3dc5e4e 100644
--- a/modules/mdn/evolution-mdn.c
+++ b/modules/mdn/evolution-mdn.c
@@ -514,8 +514,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;
@@ -605,7 +612,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;