Properly format email headers with non-ascii
authorMagnus Hagander <magnus@hagander.net>
Fri, 8 Dec 2017 14:31:20 +0000 (15:31 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 8 Dec 2017 14:31:20 +0000 (15:31 +0100)
commitb023aa56a95cbf7824363315489555824a30e461
treed7455cd156272bb68572ac9250c1a81cd11a56a3
parentdf696dc09947ee9150b40f9e82dab503677a3640
Properly format email headers with non-ascii

When sending an email to non-ascii names, the actual email address
should not be part of the encoded section. It should have a separate
section that's not encoded.

Ported over from the pgeu install
hamnadmin/hamnadmin/mailqueue/util.py