Update of /cvsroot/mailman/mailman/Mailman/Queue
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16353
Modified Files:
Tag: Release_2_1-maint
CommandRunner.py
Log Message:
[ 873035 ] subject handling in -request mail
more precautions to assert the command should be in 'us-ascii'
and more errors.
Index: CommandRunner.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Queue/CommandRunner.py,v
retrieving revision 2.26.2.4
retrieving revision 2.26.2.5
diff -u -d -r2.26.2.4 -r2.26.2.5
--- CommandRunner.py 1 Dec 2003 01:52:12 -0000 2.26.2.4
+++ CommandRunner.py 23 Sep 2004 00:42:00 -0000 2.26.2.5
@@ -75,9 +75,11 @@
subj = msg.get('subject', '')
try:
subj = make_header(decode_header(subj)).__unicode__()
+ # TK: Currently we don't allow 8bit or multibyte in mail command.
+ subj = subj.encode('us-ascii')
# Always process the Subject: header first
self.commands.append(subj)
- except HeaderParseError:
+ except (HeaderParseError, UnicodeError, LookupError):
# We couldn't parse it so ignore the Subject header
pass
# Find the first text/plain part
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org