Comment 3 for bug 266543

Revision history for this message
Dairiki-users (dairiki-users) wrote :

Fixed bug (reported by Pug Bainter <email address hidden> -- thanks!)

New patches, on mailman-2.0.5 uploaded (below).

The only real change is:

--- 0.5/Mailman/FilteringMimeWriter.py Wed, 04 Apr 2001
10:04:36 -0700 dairiki (mailman/k/4_FilteringM 1.2 664)
+++ 0.8(w)/Mailman/FilteringMimeWriter.py Mon, 07 May 2001
09:05:18 -0700 dairiki (mailman/k/4_FilteringM 1.3 664)
@@ -185,8 +185,12 @@
             pname, pval = string.split(param, '=', 1)
             return (string.lower(pname),
rfc822.unquote(pval))

- return map(split_param, message.getplist())
-
+ def valid_param(param):
+ return '=' in param
+
+ # Trailing ;'s in content-type yield empty strings
from getplist().
+ return map(split_param,
+ filter(valid_param, message.getplist()))

     def discards_data(fp):
         """Determine whether file object ignores data
written to it.