R. David Murray rdmur...@bitdance.com added the comment:
This now works correctly in 3.2/3.3 (see issue 11492). Note that the
whitespace compression is too deeply embeded in the 2.7 email package for there
to be any way to fix it there.
--
resolution: - duplicate
stage: test needed
Chris Withers ch...@simplistix.co.uk added the comment:
What's email6 and where can I find out more about it?
Chris
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5612
___
R. David Murray rdmur...@bitdance.com added the comment:
It's a plan to redesign the email API so that it can easily manipulate both
bytes and strings as needed, with a backward compatibility layer that allows
the current API to be used if all you need to do is process strings. If we're
R. David Murray rdmur...@bitdance.com added the comment:
Yes, this is being kept in mind for email6, but nothing is likely to happen in
the current package. Since email6 won't make 3.2, I'm retargeting this bug for
3.3.
--
stage: - unit test needed
type: - behavior
versions:
Terry J. Reedy tjre...@udel.edu added the comment:
The email module has several problems. RDM is working on overhauling the email
module for 3.2. Existing issues may not get individual attention.
--
nosy: +terry.reedy
___
Python tracker
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5612
___
New submission from Chris Withers ch...@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: