[issue45551] EmailMessage utf-8 folding error

2021-10-22 Thread R. David Murray


R. David Murray  added the comment:

I'm pretty sure this is a duplicate report and that we worked on a fix, but I 
don't know if it got committed because I can't find the issue...

(To be clear, the problem here is the lack of whitespace at the start of the 
folded part of the header.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45551] EmailMessage utf-8 folding error

2021-10-21 Thread Andrzej Kubaszek

New submission from Andrzej Kubaszek :

email.message - EmailMessage Error
Missing white space after folding on ','

msg['To'] = 'Ab Ć,Ab Ć,Ab Ć,Ab 
Ć'

print(msg.as_string())
'''
To: Ab =?utf-8?q?=C4=86?=,Ab =?utf-8?q?=C4=86?=,
Ab =?utf-8?q?=C4=86?=,Ab =?utf-8?q?=C4=86?=
Subject: EmailMessage Error. Missing white space after folding on ",".
 https://www.ietf.org/rfc/rfc2822.txt , 2.2.3. Long Header Fields
'''

--
components: email
files: ERROR_folding_in_EmailMessage.py
messages: 404583
nosy: andrzejQ, barry, r.david.murray
priority: normal
severity: normal
status: open
title: EmailMessage utf-8 folding error
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file50380/ERROR_folding_in_EmailMessage.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com