[Mailman-Users] 2.0.13 qrunner crash on message with no Subject header

Myk Melez myk at mozilla.org
Sat Apr 10 01:49:50 CEST 2004


Myk Melez wrote:

> It looks like the problem is in MailCommandHandler.py, which tries to 
> split the header without making sure it exists first.  The attached 
> patch seems to fix the problem.

Looks like the list strips attachments, so here's the patch inline:

/var/mailman/Mailman/MailCommandHandler.py
--- /usr/src/redhat/BUILD/mailman-2.0.13/Mailman/MailCommandHandler.py  
Thu Jul 11 14:19:34 2002
+++ /var/mailman/Mailman/MailCommandHandler.py  Fri Apr  9 16:06:32 2004
@@ -160,8 +160,10 @@
             mo = quotecre.search(subject)
             if mo:
                 subject = mo.group('cmd')
-       if (subject and
-            
self.__dispatch.has_key(string.lower(string.split(subject)[0]))):
+        if subject:
+            splitsubj = string.split(subject)
+       if (subject and splitsubj and
+            self.__dispatch.has_key(string.lower(splitsubj[0]))):
            lines = [subject] + string.split(msg.body, '\n')
         else:
            lines = string.split(msg.body, '\n')

-myk





More information about the Mailman-Users mailing list