[issue7970] email.Generator fails to flatten message parsed by email.Parser

2010-02-20 Thread R. David Murray
R. David Murray added the comment: Applied to trunk in r78274, 2.6 in r78275, py3k in r78276, and 3.1 in r78277. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue7970] email.Generator fails to flatten message parsed by email.Parser

2010-02-20 Thread R. David Murray
R. David Murray added the comment: Hmm. You are right. Not sure if that was user error or browser error. Let's try again. -- keywords: +patch Added file: http://bugs.python.org/file16266/email_message_rfc822.patch ___ Python tracker

[issue7970] email.Generator fails to flatten message parsed by email.Parser

2010-02-19 Thread R. David Murray
R. David Murray added the comment: The problem only arises with HeaderParser. The full parser turns the body into a list containing a Message object, because that's how the email package models the message structure. HeaderParser treats the body as a single string. All that is fine, but ge

[issue7970] email.Generator fails to flatten message parsed by email.Parser

2010-02-19 Thread Charles Cazabon
New submission from Charles Cazabon : email.Generator fails to flatten a message parsed by email.Parser; it throws an exception with an odd (but apparently legal) message. First, the exception: File "/usr/local/lib/python2.6/email/generator.py", line 84, in flatten self._write(msg) Fil