diff options
author | bwarsaw <> | 2003-01-10 20:30:58 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-01-10 20:30:58 +0000 |
commit | 572b3840d506de51200948112544997317f37e0a (patch) | |
tree | 59ac79c0754cfde9f557cc14bad2892617402ca5 /Mailman/Archiver | |
parent | c98e0c541a7d90f01a299845add38cd59b66065d (diff) | |
download | mailman2-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 'Mailman/Archiver')
-rw-r--r-- | Mailman/Archiver/HyperArch.py | 3 |
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]=='"': |