[issue5871] email.header.Header allow to embed raw newlines into a message

2010-08-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The example, which combines part of the subject line with another header line, strikes me as bizarre, confusing, and unnecessary. Can you provide some rationale, motivation, or use case? Without that, I would tend to think this should be

[issue5871] email.header.Header allow to embed raw newlines into a message

2010-05-05 Thread Barry A. Warsaw
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/issue5871 ___

[issue5871] email.header.Header allow to embed raw newlines into a message

2009-04-28 Thread Jakub Wilk
New submission from Jakub Wilk uba...@users.sf.net: from email.mime.text import MIMEText from email.header import Header msg = MIMEText('dummy') h = Header('dummy\nX-Injected-Header: yes') msg['Subject'] = h print msg.as_string() Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0

[issue5871] email.header.Header allow to embed raw newlines into a message

2009-04-28 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - barry nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5871 ___ ___