Skip to content
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

Fix subject encoding error with Python3.4 #88 #89

Closed
wants to merge 2 commits into from

Conversation

harobed
Copy link

@harobed harobed commented Oct 16, 2014

Fix subject encoding error with Python3.4 #88

@jamesonjlee jamesonjlee self-assigned this Oct 29, 2014
@decaz

This comment was marked as outdated.

@iorlas

This comment was marked as outdated.

@wlach
Copy link
Contributor

wlach commented May 21, 2024

(looking at this as part of the PyCon US 2024 sprints)

@stephane-klein @harobed We recently moved this to pallets-eco and I've been looking at merging old fixes / issues. As far as I can tell this looks approximately correct, however, your work needs to be reapplied against main. Are you interested in updating this PR or creating a new one? If so please do so and tag me.

@@ -428,7 +428,12 @@ def test_unicode_subject(self):
msg = Message(subject=make_lazy_string(lambda a: a, u"sübject"),
sender='[email protected]',
recipients=["[email protected]"])
self.assertIn('=?utf-8?q?s=C3=BCbject?=', msg.as_string())
self.assertIn(b'=?utf-8?q?s=C3=BCbject?=', msg.as_bytes())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we still test the as_string() case? I could be missing something.

@davidism davidism added this to the 0.10.0 milestone May 23, 2024
@davidism
Copy link
Member

If email.Message.as_bytes() is failing on something it shouldn't, that seems to be an issue to report to Python's smtplib. 3.8 is the lowest supported version in 2024, and it does not appear to have an issue.

@davidism davidism closed this May 23, 2024
@davidism davidism removed this from the 0.10.0 milestone May 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

7 participants