Ticket #3472: email-as-qp.2.patch

File email-as-qp.2.patch, 379 bytes (added by smurf@…, 18 years ago)
  • django/core/mail.py

    diff --git a/django/core/mail.py b/django/core/mail.py
    index a5af6e6..2696d0a 100644
    a b import socket  
    88import time
    99import random
    1010
     11from email import Charset
     12Charset.add_charset('utf-8',Charset.SHORTEST,Charset.QP,'utf-8')
     13
    1114DNS_NAME = socket.getfqdn() # Cache the hostname
    1215
    1316class BadHeaderError(ValueError):
Back to Top