Ticket #7747: tabs_in_subject_line_fix.2.diff

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

Updated, slightly cleaner, workaround for tabs in email subject headers

  • django/core/mail.py

     
    8585            val = ', '.join(result)
    8686        else:
    8787            val = Header(force_unicode(val), settings.DEFAULT_CHARSET)
     88    else:
     89        if name.lower() == 'subject':
     90            val = Header(val)
    8891    return name, val
    8992
    9093class SafeMIMEText(MIMEText):
Back to Top