aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Archiver/HyperArch.py
diff options
context:
space:
mode:
authorbwarsaw <>2003-01-10 20:30:58 +0000
committerbwarsaw <>2003-01-10 20:30:58 +0000
commit572b3840d506de51200948112544997317f37e0a (patch)
tree59ac79c0754cfde9f557cc14bad2892617402ca5 /Mailman/Archiver/HyperArch.py
parentc98e0c541a7d90f01a299845add38cd59b66065d (diff)
downloadmailman2-572b3840d506de51200948112544997317f37e0a.tar.gz
mailman2-572b3840d506de51200948112544997317f37e0a.tar.xz
mailman2-572b3840d506de51200948112544997317f37e0a.zip
Article.__init__(): Watch out for tuples coming back from
message.get_param(). Such beasts are RFC 2231 charsets which need to be converted to unicode.
Diffstat (limited to '')
-rw-r--r--Mailman/Archiver/HyperArch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py
index 98fb5738..de02da8a 100644
--- a/Mailman/Archiver/HyperArch.py
+++ b/Mailman/Archiver/HyperArch.py
@@ -258,6 +258,9 @@ class Article(pipermail.Article):
self.cenc = cenc.lower()
self.decoded = {}
charset = message.get_param('charset')
+ if isinstance(charset, types.TupleType):
+ # An RFC 2231 charset
+ charset = unicode(charset[2], charset[0])
if charset:
charset = charset.lower().strip()
if charset[0]=='"' and charset[-1]=='"':