[Mailman-Developers] a bug in current cvs
Barry A. Warsaw
barry@zope.com
Fri, 15 Mar 2002 10:44:27 -0500
>>>>> "F" == Fil <fil@rezo.net> writes:
F> One of my lists is totally dead, and how much I try to revive
F> it it does not come up alive (others are well). All mails sent
F> to the list end up in the shunt/ directory. Web interface fails
F> when sending mail (like 'subscribe' requests)...
F> TypeError: sequence item 0: expected string, None found
The only way I can see this happening is if your messages have no
From: header. That's anti-RFC and pretty broken, but here's a patch
that should at least avoid the tracebacks in that situation. Give it
a try.
-Barry
Index: ToDigest.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/ToDigest.py,v
retrieving revision 2.15
diff -u -u -r2.15 ToDigest.py
--- ToDigest.py 19 Dec 2001 07:03:22 -0000 2.15
+++ ToDigest.py 15 Mar 2002 15:44:22 -0000
@@ -208,7 +208,7 @@
subject, re.IGNORECASE)
if mo:
subject = subject[:mo.start(2)] + subject[mo.end(2):]
- addresses = getaddresses([msg['From']])
+ addresses = getaddresses([msg.get('From', '')])
username = ''
# Take only the first author we find
if type(addresses) is ListType and len(addresses) > 0: