Update of /cvsroot/mailman/mailman/Mailman/Bouncers
In directory usw-pr-cvs1:/tmp/cvs-serv25504
Modified Files:
Tag: Release_2_0_1-branch
DSN.py
Log Message:
process(): Use the empty string as a fallback if the message doesn't
have a Content-Type: header. This avoids a crash due to attempting to
string.lower(None).
Fix given by Rob Ellis.
Index: DSN.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Bouncers/DSN.py,v
retrieving revision 1.7.2.3
retrieving revision 1.7.2.4
diff -C2 -d -r1.7.2.3 -r1.7.2.4
*** DSN.py 29 Mar 2002 16:26:28 -0000 1.7.2.3
--- DSN.py 29 Mar 2002 18:44:05 -0000 1.7.2.4
***************
*** 44,48 ****
def process(msg):
! ctype = msg.gettype()
param = msg.getparam('report-type') or ''
if string.lower(ctype) <> 'multipart/report' or \
--- 44,48 ----
def process(msg):
! ctype = msg.gettype() or ''
param = msg.getparam('report-type') or ''
if string.lower(ctype) <> 'multipart/report' or \
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins