Ticket #7747: tabs_in_subject_line_fix.diff

File tabs_in_subject_line_fix.diff, 458 bytes (added by mark.allison@…, 16 years ago)

Workaround for tab insertion in long email subject lines

  • django/core/mail.py

     
    8585            val = ', '.join(result)
    8686        else:
    8787            val = Header(force_unicode(val), settings.DEFAULT_CHARSET)
     88    if isinstance(val, str) and name.lower() == 'subject':
     89        val = Header(val)
    8890    return name, val
    8991
    9092class SafeMIMEText(MIMEText):
Back to Top