-
-
Notifications
You must be signed in to change notification settings - Fork 61
Aggressive LMTP header cleanup #816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,23 @@ | ||
| /^DKIM-Signature:/ IGNORE | ||
| /^Authentication-Results:/ IGNORE | ||
| /^Received:/ IGNORE | ||
| # List of headers for incoming messages | ||
| # that must be retained for functionality and compatibility reasons | ||
| /^From:/ DUNNO | ||
| /^Message-Id:/ DUNNO | ||
| /^Chat-/ DUNNO | ||
| /^Content-Type:/ DUNNO | ||
|
|
||
| # For receiving clear-text messages (still supported in May 2026) | ||
| /^Subject:/ DUNNO | ||
| /^Date:/ DUNNO | ||
|
feld marked this conversation as resolved.
|
||
| /^To:/ DUNNO | ||
| /^CC:/ DUNNO | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these checks case-sensitive? Is
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, header comparisons are generally case-insensitive, and postfix defaults to case-insensitive. you have to do something special like "/^xal:/i DUNNO" if you want to have case sensitive IIRC. |
||
| /^References:/ DUNNO | ||
| /^In-Reply-To:/ DUNNO | ||
|
|
||
| # Senders might support Autocrypt 1 but not RFC9788 (Header Protection) | ||
| /^Autocrypt:/ DUNNO | ||
|
|
||
| # SecureJoin V2 protocol headers (for backward compatibility) | ||
| /^Secure-Join/ DUNNO | ||
|
|
||
| # Ignore all other headers | ||
| /.*/ IGNORE | ||
|
feld marked this conversation as resolved.
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not only for cleartext, but any incoming encrypted messages that don't have header protection for these headers.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, maybe best if you suggest a wording?
sidenote: ultimately, end-to-end encryption should require header protection, and anything else is roughly considered cleartext, as are messages today that are only encrypted and not signed. we don't need to cargo-carry forward some Autocrypt L1 scope from 8 years ago.