[New-bugs-announce] [issue5612] whitespace folding in the email package could be better ; -)

Chris Withers report at bugs.python.org
Mon Mar 30 20:25:16 CEST 2009


New submission from Chris Withers <chris at simplistix.co.uk>:

In python 3 this has been done better already, but in python2.7 we still
have this problem:

>>> from email.mime.text import MIMEText
>>> m = MIMEText('foo')
>>> m['Subject'] = 'AA  '*40
>>> str(m)
'From nobody Mon Mar 30 13:22:44 2009\nContent-Type: text/plain;
charset="us-ascii"\nMIME-Version: 1.0\nContent-Transfer-Encoding:
7bit\nSubject: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA
AA AA AA AA\n\tAA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA \n\nfoo'

Note that all the AA's are single spaced, even though they were supposed
to be double spaced.

It should be noted that the fix for [issue1974] actually relies on this
bug for the fix to work properly ;-) More work will be required to fix
that bug when this bug is fixed :-(

----------
assignee: barry
components: Library (Lib)
messages: 84603
nosy: barry, cjw296
severity: normal
status: open
title: whitespace folding in the email package could be better ;-)
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5612>
_______________________________________


More information about the New-bugs-announce mailing list