#7747: Long email subject headers have tab character inserted
--------------------------------------------------+-------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Milestone: 1.0 beta
Component: django.core.mail | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------------------+-------------------------
Comment (by [EMAIL PROTECTED]):
The workaround is to always use the email Header class to create the
subject header for an email. The current code only does this if the header
is non-ascii, otherwise, a string is used. The patch addresses this case.
When using a string a long subject line is folded with tabs. In (recent
versions?) of Outlook the tabs are removed resulting in abutted words. In
(recent versions?) of Tbird the tabs are rendered giving "wide" spaces
between words. When using the header class, however, folding is done with
a space and you seem to get the subject line looking as you'd expect.
If you read the discussions referenced above it seems the email stdlib is
a bit broken. This patch just takes advantage of, what I think is, the
happy accident that using the Header class seems to give the expected
results (or, at least, better results than having tabs inserted in your
subject line).
--
Ticket URL: <http://code.djangoproject.com/ticket/7747#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---