[New-bugs-announce] [issue45551] EmailMessage utf-8 folding error

Andrzej Kubaszek report at bugs.python.org
Thu Oct 21 07:18:06 EDT 2021


New submission from Andrzej Kubaszek <kubaszek at prz.edu.pl>:

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

msg['To'] = 'Ab Ć<abc at def.com>,Ab Ć<abc at def.com>,Ab Ć<abc at def.com>,Ab Ć<abc at def.com>'

print(msg.as_string())
'''
To: Ab =?utf-8?q?=C4=86?=<abc at def.com>,Ab =?utf-8?q?=C4=86?=<abc at def.com>,
Ab =?utf-8?q?=C4=86?=<abc at def.com>,Ab =?utf-8?q?=C4=86?=<abc at def.com>
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 <report at bugs.python.org>
<https://bugs.python.org/issue45551>
_______________________________________


More information about the New-bugs-announce mailing list