mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +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 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
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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! {
|
||||||
|
|||||||
Reference in New Issue
Block a user