Update of /cvsroot/mailman/mailman/Mailman/Commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23313
Modified Files:
Tag: Release_2_1-maint
cmd_subscribe.py
Log Message:
Non-MIME sender realname should not be treated.
Index: cmd_subscribe.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Commands/cmd_subscribe.py,v
retrieving revision 2.2
retrieving revision 2.2.2.1
diff -u -d -r2.2 -r2.2.2.1
--- cmd_subscribe.py 21 Nov 2002 05:37:25 -0000 2.2
+++ cmd_subscribe.py 24 Jan 2005 00:16:54 -0000 2.2.2.1
@@ -84,9 +84,12 @@
res.results.append(_('No valid address found to subscribe'))
return STOP
# Watch for encoded names
- h = make_header(decode_header(realname))
- # BAW: in Python 2.2, use just unicode(h)
- realname = h.__unicode__()
+ try:
+ h = make_header(decode_header(realname))
+ # BAW: in Python 2.2, use just unicode(h)
+ realname = h.__unicode__()
+ except UnicodeDecodeError:
+ realname = u''
# Coerce to byte string if uh contains only ascii
try:
realname = realname.encode('us-ascii')
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org