------------------------------------------------------------ revno: 1006 committer: Mark Sapiro <[EMAIL PROTECTED]> branch nick: 2.1 timestamp: Fri 2007-11-09 12:25:33 -0800 message: Fixed Mailman/Queue/CommandRunner.py to decode a quoted-printable or base64 encoded message part. modified: Mailman/Queue/CommandRunner.py
=== modified file 'Mailman/Queue/CommandRunner.py' --- a/Mailman/Queue/CommandRunner.py 2005-08-27 01:40:17 +0000 +++ b/Mailman/Queue/CommandRunner.py 2007-11-09 20:25:33 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2004 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2007 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -93,7 +93,7 @@ if part is None: # E.g the outer Content-Type: was text/html return - body = part.get_payload() + body = part.get_payload(decode=True) # text/plain parts better have string payloads assert isinstance(body, StringType) or isinstance(body, UnicodeType) lines = body.splitlines() -- https://code.launchpad.net/~mailman-coders/mailman/2.1 You are receiving this branch notification because you are subscribed to it. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.1/+subscription/mailman-checkins. _______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org