[issue39131] signing needs two serialisation passes

2019-12-24 Thread Jasper Spaans
Change by Jasper Spaans : -- keywords: +patch pull_requests: +17149 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17695 ___ Python tracker <https://bugs.python.org/issu

[issue39131] signing needs two serialisation passes

2019-12-24 Thread Jasper Spaans
New submission from Jasper Spaans : When creating multipart/signed messages, this currently require two serialisation passes: once to extract the flattened contents to be signed, and once to actually serialise the message. The PR this ticket will be linked to contains a new class

[issue39073] email regression in 3.8: folding

2019-12-17 Thread Jasper Spaans
Jasper Spaans added the comment: As can be seen above, 3.5 wraps the realname in a double quote, but 3.8 fails to do so. Note that 3.5 also does not add a whitespace in front of the line starting with "X:", so it is also not merged with the previous line when parsing. I guess we&

[issue39073] email regression in 3.8: folding

2019-12-17 Thread Jasper Spaans
New submission from Jasper Spaans : big-bob:t spaans$ cat fak.py import sys from email.message import EmailMessage from email.policy import SMTP from email.headerregistry import Address msg = EmailMessage(policy=SMTP) a = Address(display_name='Extra Extra Read All About It This Line Doe