Your message dated Mon, 20 Jun 2016 16:16:08 +0000
with message-id <[email protected]>
and subject line Bug#827366: Removed package(s) from unstable
has caused the Debian Bug report #787511,
regarding libpython3.4-stdlib: double embarassing failure in RFC2047 eMail 
header encoding
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
787511: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787511
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libpython3.4-stdlib
Version: 3.4.3-6
Severity: normal

Consider this:

tglase@tglase:~ $ cat x.py3
from email.message import Message
from email.header import Header
msg = Message()
h = Header('p\xf6stal foo bar baz foo bar baz foo bar baz foo bar baz', 
'iso-8859-1')
msg['Subject'] = h
print(h)
print(msg.as_string())
tglase@tglase:~ $ python3 x.py3
pöstal foo bar baz foo bar baz foo bar baz foo bar baz
Subject: 
=?iso-8859-1?q?p=F6stal_foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz?=


tglase@tglase:~ $ cat x.php
<?php
$h = "Subject: p\xf6stal foo bar baz foo bar baz foo bar baz foo bar baz";
echo mb_encode_mimeheader($h, "ISO-8859-1", "Q", "\n") . "\n";

$h = "Subject: [service-Aufgaben S&W-Team][#19415] VM''s aufsetzen mit 
unterschiedlichen";
echo mb_encode_mimeheader($h, "UTF-8", "Q", "\n") . "\n";
tglase@tglase:~ $ php x.php
Subject: =?ISO-8859-1?Q?p=3Fstal=20foo=20bar=20baz=20foo=20bar=20baz=20fo?=
 =?ISO-8859-1?Q?o=20bar=20baz=20foo=20bar=20baz?=
Subject: [service-Aufgaben S&W-Team][#19415] VM''s aufsetzen mit
 unterschiedlichen


See how Python 3.4 embarassingly fails this extremely simple
RFC2047 eMail header MIME encoding test: the resulting header
line is 82 chars, and thus longer than what RFC822 permits.
“Embarassing” because PHP gets it all right.

If I add another ' foo' at the end, I get this:

pöstal foo bar baz foo bar baz foo bar baz foo bar baz foo
Subject: 
=?iso-8859-1?q?p=F6stal_foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz_foo?=

“Double embarassing” because even Python 2.7 got that one
not as catastrophically wrong.

This is bad because MUAs like Pine rightfully refuse to
RFC2047-decode such bad and broken messages (but apparently
widespread to an amount that Alpine as packaged in Debian
contains a hack to allow for such broken, overlong lines).

Related bugs in: libpython2.7-stdlib, perl

-- System Information:
Debian Release: stretch/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: i386, amd64

Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages libpython3.4-stdlib depends on:
ii  libbz2-1.0            1.0.6-8
ii  libc6                 2.19-18
ii  libdb5.3              5.3.28-9
ii  libffi6               3.1-2+b2
ii  liblzma5              5.1.1alpha+20120614-2+b3
ii  libmpdec2             2.4.1-1
ii  libncursesw5          5.9+20150516-2
ii  libpython3.4-minimal  3.4.3-6
ii  libreadline6          6.3-8
ii  libsqlite3-0          3.8.10.2-1
ii  libtinfo5             5.9+20150516-2
ii  mime-support          3.58
ii  multiarch-support     2.19-18

libpython3.4-stdlib recommends no packages.

libpython3.4-stdlib suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 3.4.4-3+rm

Dear submitter,

as the package python3.4 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/827366

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to