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.
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/ FilteringMimeWr iter.py Wed, 04 Apr 2001 k/4_FilteringM 1.2 664) Mailman/ FilteringMimeWr iter.py Mon, 07 May 2001 k/4_FilteringM 1.3 664) lower(pname) , unquote( pval))
10:04:36 -0700 dairiki (mailman/
+++ 0.8(w)/
09:05:18 -0700 dairiki (mailman/
@@ -185,8 +185,12 @@
pname, pval = string.split(param, '=', 1)
return (string.
rfc822.
- return map(split_param, message.getplist()) 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.
def discards_data(fp):
"""Determine whether file object ignores data
written to it.