[Pkg-mailman-hackers] Bug#450399: mailman HTML archives drop MIME parts with no headers
Daniel Kahn Gillmor
dkg-debian.org at fifthhorseman.net
Wed Nov 7 03:35:18 UTC 2007
Package: mailman
Version: 2.1.9-8
Severity: normal
Tags: patch
Mailman appears to create a faulty HTML archive page of any message
which has a part with no header (most MIME parts have at least a
Content-Type: header, but RFC 2045, section 5.2 suggests that it's not
a requirement). Any headerless MIME part is stripped and not
displayed.
This is discussed upstream here:
https://sourceforge.net/tracker/index.php?func=detail&aid=759841&group_id=103&atid=100103
The word is that it's going to be fixed in mailman 2.1.10, though that
isn't even in beta yet.
The patch against 2.1.9 seems pretty minimal:
--- Scrubber.py.orig 2007-11-06 21:15:30.000000000 -0500
+++ Scrubber.py 2007-11-06 21:16:07.000000000 -0500
@@ -342,7 +342,8 @@
text = []
for part in msg.walk():
# TK: bug-id 1099138 and multipart
- if not part or part.is_multipart():
+ # MAS test payload - if part may fail if there are no headers.
+ if not part._payload or part.is_multipart():
continue
# All parts should be scrubbed to text/plain by now.
partctype = part.get_content_type()
Thanks for maintaining mailman in debian.
Regards,
--dkg
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (200, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
More information about the Pkg-mailman-hackers
mailing list