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
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
___
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
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - barry
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5871
___
___