Update of /cvsroot/mailman/mailman/Mailman/Bouncers
In directory usw-pr-cvs1:/tmp/cvs-serv21287

Modified Files:
      Tag: Release_2_0_1-branch
        DSN.py 
Log Message:
process(): When calling mfile.next(), catch TypeErrors which can occur
from deep in multifile.  This closes SF bug #414502 which has as its
example a MIME multipart message that has no boundary parameter
(clearly, this message is broken).


Index: DSN.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Bouncers/DSN.py,v
retrieving revision 1.7.2.2
retrieving revision 1.7.2.3
diff -C2 -d -r1.7.2.2 -r1.7.2.3
*** DSN.py      6 Nov 2001 04:27:30 -0000       1.7.2.2
--- DSN.py      29 Mar 2002 16:26:28 -0000      1.7.2.3
***************
*** 61,64 ****
--- 61,69 ----
              # the message *looked* like a DSN, but it really wasn't :(
              return None
+         except TypeError:
+             # This message has serious problems, pass it on.  Seen in the
+             # wild: it is a MIME document with no boundary parameter in its
+             # Content-Type: header.
+             return None
          if not more:
              # we didn't find it


_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to