This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sdaoden
Recipients r.david.murray, sdaoden
Date 2011-03-07.14:36:22
SpamBayes Score 6.6629977e-06
Marked as misclassified No
Message-id <20110307143552.GA15142@sherwood.local>
In-reply-to
Content
David, it seems my patch http://bugs.python.org/file20675/email_header.patch 
is a real requirement for EMAIL 5.1 code.

This is because BytesGenerator._write_headers() creates a Header 
instance in 'else:' (the other branches are not entered at all for 
the test mail), passing 'v' as the 's=' arg of Header ctor. 
It follows that Header._chunks[] is never the empty list. 
'v' however may be the empty string for header fields like 
'X-Status:', 'X-Keywords:' and maybe more, resulting in 
string.splitlines() trying to break up the empty string.

I don't understand why i could pass thousands of mails, including 
the test mail, dozens of times through my thing without showing 
this up?  Does the mailbox.mbox message subclass adjust such things? 
Bye.
History
Date User Action Args
2011-03-07 14:36:23sdaodensetrecipients: + sdaoden, r.david.murray
2011-03-07 14:36:22sdaodenlinkissue11401 messages
2011-03-07 14:36:22sdaodencreate