Package: unattended-upgrades Version: 0.80~sid2 Tags: patch unattended-upgrade gives this to sendmail:
MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable but the body is not really encoded using quoted-printable. As a result, this string of bytes in the body: Allowed origins are: ['o=Debian, [...] is usually rendered this way by a MIME-capable email program: (tried three of them: mutt, alpine and icedove) Allowed origins are: ['o?bian, [...] because "=De" is understood as a quoted-printable escape. The obvious fix is to explicitly encode the body using quoted-printable, maybe like this: --- a/unattended-upgrade +++ b/unattended-upgrade @@ -606,7 +606,7 @@ def _send_mail_using_sendmail(to_address, subject, body): charset = email.Charset.Charset("utf-8") charset.body_encoding = email.Charset.QP msg.set_charset(charset) - msg.set_payload(body) + msg.set_payload(msg._charset.body_encode(body)) msg['Subject'] = subject msg['To'] = to_address sendmail = subprocess.Popen( then unattended-upgrade would produce an email message like this: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable [...] Allowed origins are: ['o=3DDebian, which will be rendered correctly by the email program. Thanks. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org