Package: unattended-upgrades
Version: 0.79.5+wheezy2
Followup-For: Bug #789703

Hello,

Please consider the attached patch as a fix for this bug.

(Note that email.charset (unavoidably) uses Base64 rather than
Quoted-Printable
for UTF-8 content.  Everyone's MUA supports Content-Transfer-Encoding these
days, so it shouldn't be a problem, right? :P)

Thanks,

-MD

-- System Information:
Debian Release: 7.9
  APT prefers squeeze-lts
  APT policy: (500, 'squeeze-lts'), (500, 'oldstable-updates'), (500, 
'oldoldstable-updates'), (500, 'oldoldstable'), (500, 'oldstable'), (488, 
'stable-updates'), (488, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages unattended-upgrades depends on:
ii  apt                    0.9.7.9+deb7u7
ii  apt-utils              0.9.7.9+deb7u7
ii  debconf [debconf-2.0]  1.5.49
ii  lsb-base               4.1+Debian8+deb7u1
ii  lsb-release            4.1+Debian8+deb7u1
ii  python                 2.7.3-4+deb7u1
ii  python-apt             0.8.8.2
ii  ucf                    3.0025+nmu3
ii  xz-utils               5.1.1alpha+20120614-2

unattended-upgrades recommends no packages.

Versions of packages unattended-upgrades suggests:
ii  bsd-mailx                                  8.1.2-0.20111106cvs-1+deb7u1
ii  exim4-daemon-light [mail-transport-agent]  4.80-7+deb7u1

-- debconf-show failed

-MD

-- 
-------------------------------------------------------------------------------
Michael Deegan                Hugaholic                http://www.deegan.id.au/
-------------------------  Jung, zr jbeel?  -----------------------------------
--- /usr/bin/unattended-upgrade	2015-06-29 14:57:18.000000000 +0800
+++ /usr/bin/unattended-upgrade.new	2016-02-29 11:35:21.908988898 +0800
@@ -570,10 +570,7 @@
 def _send_mail_using_sendmail(to_address, subject, body):
     # format as a proper mail
     msg = Message()
-    charset = email.Charset.Charset("utf-8")
-    charset.body_encoding = email.Charset.QP
-    msg.set_charset(charset)
-    msg.set_payload(body)
+    msg.set_payload(body,'utf-8')
     msg['Subject'] = subject
     msg['To'] = to_address
     sendmail = subprocess.Popen(

Reply via email to