From 71dfcaa81ce3bbb89f1481521e12aaacea4da6b3 Mon Sep 17 00:00:00 2001 From: iequidoo Date: Sun, 2 Mar 2025 20:21:49 -0300 Subject: [PATCH] docs: Nonstandard headers needing DKIM protection should be hidden --- src/mimefactory.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/mimefactory.rs b/src/mimefactory.rs index 3644a6e65..8319ed511 100644 --- a/src/mimefactory.rs +++ b/src/mimefactory.rs @@ -835,11 +835,13 @@ impl MimeFactory { // placed here. let mut unprotected_headers: Vec<(&'static str, HeaderType<'static>)> = Vec::new(); - // Headers that MUST NOT go into IMF header section. - // - // These are large headers which may hit the header section size limit on the server, such as - // Chat-User-Avatar with a base64-encoded image inside. Also there are headers duplicated here - // that servers mess up with in the IMF header section, like Message-ID. + // Headers that MUST NOT (only) go into IMF header section: + // - Large headers which may hit the header section size limit on the server, such as + // Chat-User-Avatar with a base64-encoded image inside. + // - Headers duplicated here that servers mess up with in the IMF header section, like + // Message-ID. + // - Nonstandard headers that should be DKIM-protected because e.g. OpenDKIM only signs + // known headers. // // The header should be hidden from MTA // by moving it either into protected part