mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
check for sender mailer-daemon as link2xt proposed
This commit is contained in:
@@ -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 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 {
|
||||
false
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user