-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Use of rtrim before encryption introduces blank line in headers when header contains lines with only whitespace characters #525
Comments
Since then I have concluded that only the encrypted messages are messed up.
And since at this point the email is provided as is to gnupg for encryption, I looked for RFC-5322:
So because GOG sends this strange header, AnonAddy cleans this up, but ends up introducing a bug, by inserting a blank line into the headers, which then gets interpreted as So that was a rabbithole 🙂 I don't have an immediate solution to this, other than |
I have setup an alias to a GOG account, and I forward it to an email. Encryption is turned on, although I don't think it matters (I have disabled encryption for now, but GOG is yet to send the next newsletter).
When I receive the email it contains a partial header in the body, and then the email html is included as multipart/mixed content-type.
The email header contains a
List-Unsubscribe
key and the value contains a new line with 2 spaces.The email body that I see in the client starts exactly after the new line, and contains the
<url>
and the the remaining part of the header.I have enabled a different mail client as the forward address to see if this is a provider issue, as well as disabled encryption, to see if decryption goes wrong (also unlikely). I will update the post if a new email is sent out.
2FA emails from GOG don't contain a
List-Unsubscribe
, and are rendered correctly (even with encryption).I have sent you two sample emails for investigation.
Edit: When encryption is off, the email is correctly handled by both providers, despite having the same header with the line-break. Interesting...
The text was updated successfully, but these errors were encountered: