[Mailman-Developers] Bounce error hangs Mailman
Barry A. Warsaw
barry@zope.com
Mon, 5 Nov 2001 19:47:43 -0500
Here's a patch to at least avoid the traceback. I'm heading out in a
few minutes, but I'll try to put together a real patch when I get
back. This, plus the bogus cookie value DoS warrant a 2.0.7 release.
-Barry
-------------------- snip snip --------------------
Index: DSN.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Bouncers/DSN.py,v
retrieving revision 1.7.2.1
diff -u -r1.7.2.1 DSN.py
--- DSN.py 2001/07/25 18:04:42 1.7.2.1
+++ DSN.py 2001/11/06 00:46:32
@@ -43,8 +43,10 @@
def process(msg):
- if string.lower(msg.gettype()) <> 'multipart/report' or \
- string.lower(msg.getparam('report-type')) <> 'delivery-status':
+ ctype = msg.gettype()
+ param = msg.getparam('report-type') or ''
+ if string.lower(ctype) <> 'multipart/report' or \
+ string.lower(param) <> 'delivery-status':
# then
return None
boundary = msg.getparam('boundary')