Update of /cvsroot/mailman/mailman/Mailman/Archiver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14562/Archiver
Modified Files:
HyperArch.py pipermail.py
Log Message:
Back out Revision 2.30 patch for email.Message.set_payload() bug
because it is overwrapped in Mailman.Message.
Index: HyperArch.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Archiver/HyperArch.py,v
retrieving revision 2.49
retrieving revision 2.50
diff -u -d -r2.49 -r2.50
--- HyperArch.py 9 Jan 2006 07:32:33 -0000 2.49
+++ HyperArch.py 29 Jan 2006 05:13:57 -0000 2.50
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2006 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
@@ -304,12 +304,7 @@
if charset[0]=="'" and charset[-1]=="'":
charset = charset[1:-1]
try:
- # Check Scrubber-munged payload
- if message.get('x-mailman-scrubbed'):
- decode = False
- else:
- decode = True
- body = message.get_payload(decode=decode)
+ body = message.get_payload(decode=True)
except binascii.Error:
body = None
if body and charset != Utils.GetCharSet(self._lang):
Index: pipermail.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Archiver/pipermail.py,v
retrieving revision 2.26
retrieving revision 2.27
diff -u -d -r2.26 -r2.27
--- pipermail.py 24 Dec 2005 01:48:00 -0000 2.26
+++ pipermail.py 29 Jan 2006 05:13:57 -0000 2.27
@@ -217,12 +217,7 @@
self.headers[i] = message[i]
# Read the message body
- # Check Scrubber-munged paylaod
- if message.get('x-mailman-scrubbed'):
- decode = False
- else:
- decode = True
- s = StringIO(message.get_payload(decode=decode)\
+ s = StringIO(message.get_payload(decode=True)\
or message.as_string().split('\n\n',1)[1])
self.body = s.readlines()
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org