Message317025
policy.utf8 is False, but non-ascii are not well-handled.
Repro. code.
```
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.message import EmailMessage
>>> from email.policy import default
>>>
>>> policy = default.clone()
>>> policy.utf8
False
>>> msg = EmailMessage()
>>> msg["Subject"] = "á"
>>> policy.fold("Subject", msg["Subject"])
'Subject: =?utf-8?q?=C3=A1?=\n'
>>> policy.fold("Subject", 'á')
'Subject: á\n'
``` |
|
Date |
User |
Action |
Args |
2018-05-18 12:12:02 | licht-t | set | recipients:
+ licht-t |
2018-05-18 12:12:02 | licht-t | set | messageid: <1526645522.46.0.682650639539.issue33568@psf.upfronthosting.co.za> |
2018-05-18 12:12:02 | licht-t | link | issue33568 messages |
2018-05-18 12:12:02 | licht-t | create | |
|