diff options
Diffstat (limited to 'modules/mdn/evolution-mdn.c')
-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; |