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)
commitecc535d579851f8463aa231bb428d1041c9cf730
tree62b3bac3c75a1d2417426df045ff9fd2a09dd69c
parent0ff5a9417fdcaa2979cb773548de6213a0714d49
Use RFC 2047 header encoding when name contains non ascii characters.

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.
templates/welcome-message
ud-useradd