From 6e8808f69bad15e59d1526e03f45d7867ff21495 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Sat, 1 Aug 2020 10:57:32 +0200 Subject: [PATCH] Download possible ndns also if the contact is blocked Before, if the user had blocked their mailer daemon (like me), ndns were not parsed. --- src/imap/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/imap/mod.rs b/src/imap/mod.rs index 4b83ed924..9264c0544 100644 --- a/src/imap/mod.rs +++ b/src/imap/mod.rs @@ -1499,7 +1499,6 @@ pub(crate) async fn prefetch_should_download( let accepted_contact = origin.is_known(); let show = is_autocrypt_setup_message - || maybe_ndn || match show_emails { ShowEmails::Off => is_chat_message || is_reply_to_chat_message, ShowEmails::AcceptedContacts => { @@ -1507,8 +1506,8 @@ pub(crate) async fn prefetch_should_download( } ShowEmails::All => true, }; - let show = show && !blocked_contact; - Ok(show) + let should_download = (show && !blocked_contact) || maybe_ndn; + Ok(should_download) } async fn message_needs_processing(