diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2008-08-23 13:31:28 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2008-08-23 13:31:28 +0000 |
| commit | 0f869f905e7d3a335ea9090fa079baf4b5883ec7 (patch) | |
| tree | 40363a3f0604ace0861b0cbbfacf353d72a7ec84 /django | |
| parent | b35acb3ee97c8ee0d89b7fedb10168056857ab20 (diff) | |
Fixed #7747: Altered EmailMessage such that messages with long subject lines don't use tabs in their continutation sequence. Tabs in subjects cause problems with Outlook and Thunderbird. Thanks to Mark Allison <mark.allison@maplecroft.com> for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/mail.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/core/mail.py b/django/core/mail.py index d6c6eea190..1ac2a39908 100644 --- a/django/core/mail.py +++ b/django/core/mail.py @@ -86,6 +86,9 @@ def forbid_multi_line_headers(name, val): val = ', '.join(result) else: val = Header(val, settings.DEFAULT_CHARSET) + else: + if name.lower() == 'subject': + val = Header(val) return name, val class SafeMIMEText(MIMEText): |
