Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
utf-8 QP by default.
  • Loading branch information
amcgregor committed Jul 3, 2011
1 parent 1d2f7e6 commit e27dfd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions marrow/mailer/__init__.py
Expand Up @@ -7,6 +7,7 @@
import warnings
import pkg_resources

from email import charset
from functools import partial

from marrow.mailer.message import Message
Expand Down Expand Up @@ -126,3 +127,8 @@ def send(self, message):

log.debug("Message %s delivered.", message.id)
return result


# Import-time side-effect: un-fscking the default use of base-64 encoding for UTF-8 e-mail.
charset.add_charset('utf-8', charset.SHORTEST, charset.QP, 'utf-8')
charset.add_charset('utf8', charset.SHORTEST, charset.QP, 'utf8')

0 comments on commit e27dfd1

Please sign in to comment.