fix: Avoid auto-marking DSNs as seen; the user may want to see them in another MUA

This commit is contained in:
iequidoo
2025-09-16 03:54:08 -03:00
parent cfebc28c57
commit f461b8d9ca

View File

@@ -1162,8 +1162,9 @@ async fn decide_chat_assignment(
info!(context, "Message is an MDN (TRASH).");
true
} else if mime_parser.delivery_report.is_some() {
// Auto-marking DSNs as IMAP-seen should be avoided because the user may want to see them in
// another MUA.
info!(context, "Message is a DSN (TRASH).");
markseen_on_imap_table(context, rfc724_mid).await.ok();
true
} else if mime_parser.get_header(HeaderDef::ChatEdit).is_some()
|| mime_parser.get_header(HeaderDef::ChatDelete).is_some()