check for sender mailer-daemon as link2xt proposed

This commit is contained in:
Hocuri
2020-06-13 17:29:38 +02:00
parent 45b871f76d
commit 15b30ceed1
2 changed files with 2 additions and 2 deletions

View File

@@ -1458,7 +1458,7 @@ pub(crate) async fn prefetch_should_download(
let is_reply_to_chat_message = prefetch_is_reply_to_chat_message(context, &headers).await; let is_reply_to_chat_message = prefetch_is_reply_to_chat_message(context, &headers).await;
let maybe_ndn = if let Some(from) = headers.get_header_value(HeaderDef::From_) { let maybe_ndn = if let Some(from) = headers.get_header_value(HeaderDef::From_) {
from.to_ascii_lowercase().contains("daemon") from.to_ascii_lowercase().contains("mailer-daemon")
} else { } else {
false false
}; };

View File

@@ -911,7 +911,7 @@ impl MimeMessage {
&& self && self
.get(HeaderDef::From_)? .get(HeaderDef::From_)?
.to_ascii_lowercase() .to_ascii_lowercase()
.contains("daemon") .contains("mailer-daemon")
&& self.failure_report.is_none() && self.failure_report.is_none()
{ {
lazy_static! { lazy_static! {