Update of /cvsroot/mailman/mailman/Mailman
In directory usw-pr-cvs1:/tmp/cvs-serv24829
Modified Files:
Message.py
Log Message:
get_senders(): If there's no envelope, get_unixfrom() will return
None, which obviously can't be .split(). This is more robust.
Index: Message.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Message.py,v
retrieving revision 2.16
retrieving revision 2.17
diff -C2 -d -r2.16 -r2.17
*** Message.py 12 Mar 2002 07:35:48 -0000 2.16
--- Message.py 5 Apr 2002 22:03:28 -0000 2.17
***************
*** 127,131 ****
for h in headers:
if h is None:
! fieldval = self.get_unixfrom()
try:
pairs.append(fieldval.split()[1])
--- 127,132 ----
for h in headers:
if h is None:
! # get_unixfrom() returns None if there's no envelope
! fieldval = self.get_unixfrom() or ''
try:
pairs.append(fieldval.split()[1])
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins