diff options
author | Milan Crha <mcrha@redhat.com> | 2012-12-11 02:51:29 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-12-11 02:51:29 +0800 |
commit | 05a2e72079784ca3185502c69e8801a07b1a4867 (patch) | |
tree | 0cd6e6e3e8f2e4d461b4dcf1e8d7a687fae6d500 | |
parent | c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184 (diff) | |
download | gsoc2013-evolution-05a2e72079784ca3185502c69e8801a07b1a4867.tar.gz gsoc2013-evolution-05a2e72079784ca3185502c69e8801a07b1a4867.tar.zst gsoc2013-evolution-05a2e72079784ca3185502c69e8801a07b1a4867.zip |
Bug #689966 - MDN bar shown in Sent folder
-rw-r--r-- | 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 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; |