fix: ensure message content is not modified by header filter

Due to an oversight, one of the header filters has potentially modified
the message body, leading to broken cryptographic signatures.

Switch to the Message-Id instead of the Content-Type header, which is
usually only present in the global header.

Signed-off-by: Moritz Poldrack <git@moritz.sh>
Reported-by: Cole Young <cole@young.sh>
Fixes: 009237cc ("chore: Prevent Microsoft MUAs from sending reactions (#4120)")
This commit is contained in:
Moritz Poldrack 2025-03-23 10:58:30 +01:00
parent 70d645d863
commit 1f07f39d87
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -8,4 +8,5 @@
/^\s*X-Mailer/ IGNORE /^\s*X-Mailer/ IGNORE
/^\s*X-Originating-IP/ IGNORE /^\s*X-Originating-IP/ IGNORE
/^\s*Received: from.*127.0.0.1/ IGNORE /^\s*Received: from.*127.0.0.1/ IGNORE
/^Content-Type:/i PREPEND X-MS-Reactions: disallow /^X-MS-Reactions:/ IGNORE
/^Message-Id:/i PREPEND X-MS-Reactions: disallow