-
Notifications
You must be signed in to change notification settings - Fork 199
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
encoding.to_message
ignores multiline headers when there's non-ascii chars
#30
Comments
The problem is on |
After this fix, the test case I gave above works fine: >>> msg2 = email.message_from_string("To: =?utf-8?q?Emil_Stenstr=C3=B6m?= <[email protected]>, Person2\n\t<[email protected]>")
>>> print encoding.to_message(encoding.from_message(msg2))
From nobody Tue Dec 3 13:52:03 2013
MIME-Version: 1.0
To: "=?utf-8?q?Emil_Stenstr=C3=B6m?=" <person1@domain.com>,
"=?utf-8?q?Person2?=" <person2@domain.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit |
@zedshaw Any chance to get this merged so I can stop using my own fork? |
Probably not. Look around, you'll see Zed abandoned this project. Please use https://github.com/moggers87/salmon/ as it is the best maintained fork |
Note that the from_message step seems to work fine:
The text was updated successfully, but these errors were encountered: