Python email.MIMEText.MIMEText.as_string incorrectly folds long subject header
Issue
Long subject headers are folded using a newline and tab in email.MIMEText.MIMEText.as_string
. While this is not exactly prohibited by RFC 822 it breaks mail clients like Thunderbird and Outlook.
Environment
- Red Hat Enterprise Linux 6.1
- Python 2.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.