-
Notifications
You must be signed in to change notification settings - Fork 106
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
RFC2047 encoded-words as content-transfer-encoding value #122
Comments
If I understood the RFC2047/2045 correctly that's invalid for the Content-Transfer-Encoding header... that has a limited set of possible values and must not be encoded |
Yes, it's invalid, but unfortunately, messages in the wild still put encoded words there. I don't think adding a decoding step here is a problem. I think in this case, making this change increases usability without reducing correctness, as I can't think of a way this would lead to incorrectly parsed messages. |
Have you reached out to mailbox.org to let them know about the issue? |
No. And I haven't been able to reproduce it with newer messages, only ones from last year. Chances are they fixed it already. |
@emersion are you opposed to making such a change to your library? |
In this particular case, users can trivially ignore the |
There exist messages in the wild (notably, some originating from mailbox.org's automated mailer e.g. due to payments) in which the
content-transfer-encoding
presents as an RFC2047 encoded-word. For instance, here is a (redacted) example:go-message cannot handle such messages.
One "hacky" solution is to simply pass the encoded word through the header decoder, as in this patch:
The text was updated successfully, but these errors were encountered: