Parse ndns from Tiscali

This commit is contained in:
Hocuri
2020-06-16 11:42:19 +02:00
committed by holger krekel
parent f4a1a526f5
commit 40c9c2752b
4 changed files with 108 additions and 5 deletions

View File

@@ -1458,7 +1458,8 @@ pub(crate) async fn prefetch_should_download(
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_) {
from.to_ascii_lowercase().contains("mailer-daemon")
let from = from.to_ascii_lowercase();
from.contains("mailer-daemon") || from.contains("mail-daemon")
} else {
false
};