[Mailman-Users] Re: [Mailman-Developers] Bounce error hangs Mailman

Barry A. Warsaw barry at zope.com
Tue Nov 6 01:47:43 CET 2001


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')




More information about the Mailman-Users mailing list