Package: python2.7 Version: 2.7.9-2+deb8u1 Severity: normal Dear Maintainer,
steps to reproduce: #!/usr/bin/env python import sys import email mail = email.message_from_string( """From: <postmas...@example.com> To: <bou...@example.com> Subject: demo X-Overlong-Header-Name-causes-python-mail-to-crash-in-re-serialization-example: Hello """) message = mail.as_string() sys.stdout.write(message) -- System Information: Debian Release: 8.7 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_NZ.utf8, LC_CTYPE=en_NZ.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python2.7 depends on: ii libpython2.7-stdlib 2.7.9-2+deb8u1 ii mime-support 3.58 ii python2.7-minimal 2.7.9-2+deb8u1 python2.7 recommends no packages. Versions of packages python2.7 suggests: ii binutils 2.25-5 pn python2.7-doc <none> -- no debconf information