Use RFC 2047 header encoding when name contains non ascii characters.
authorStephen Gran <steve@lobefin.net>
Sun, 24 May 2009 13:15:51 +0000 (14:15 +0100)
committerStephen Gran <steve@lobefin.net>
Sun, 24 May 2009 13:15:51 +0000 (14:15 +0100)
AIUI, we are supposed to use the shorter of quoted printable or base64
for utf-8 headers, so we try to decode the header into ascii, and if that
fails, we select the shorter encapsulation and use that in the template.

This change requires importing the module email, which also means changing
all the uses of the variable 'email' into emailaddr so we don't break
usage of the email module.


No differences found