aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Archiver
diff options
context:
space:
mode:
authortkikuchi <>2004-10-14 08:05:06 +0000
committertkikuchi <>2004-10-14 08:05:06 +0000
commit9bdb4029f331ea6230c668e408c2f694491ec6e4 (patch)
tree9c535e2969721c58494fe720bf98491c281e8934 /Mailman/Archiver
parentd65a27a0dc0456e3939e2068e1866589e8a00f41 (diff)
downloadmailman2-9bdb4029f331ea6230c668e408c2f694491ec6e4.tar.gz
mailman2-9bdb4029f331ea6230c668e408c2f694491ec6e4.tar.xz
mailman2-9bdb4029f331ea6230c668e408c2f694491ec6e4.zip
fix bugs when using ARCHIVE_HTML_SANITIZER = 1
Diffstat (limited to 'Mailman/Archiver')
-rw-r--r--Mailman/Archiver/pipermail.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Archiver/pipermail.py b/Mailman/Archiver/pipermail.py
index ec8e46f6..44dce52c 100644
--- a/Mailman/Archiver/pipermail.py
+++ b/Mailman/Archiver/pipermail.py
@@ -217,7 +217,8 @@ class Article:
self.headers[i] = message[i]
# Read the message body
- s = StringIO(message.get_payload())
+ s = StringIO(message.get_payload(decode=1)\
+ or message.as_string().split('\n\n',1)[1])
self.body = s.readlines()
def _set_date(self, message):