Update of /cvsroot/mailman/mailman/Mailman/Archiver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21071
Modified Files:
Tag: Release_2_1-maint
HyperArch.py
Log Message:
RFC2231 charset is in email package.
Index: HyperArch.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Archiver/HyperArch.py,v
retrieving revision 2.37.2.10
retrieving revision 2.37.2.11
diff -u -d -r2.37.2.10 -r2.37.2.11
--- HyperArch.py 25 Jan 2005 07:52:01 -0000 2.37.2.10
+++ HyperArch.py 21 Apr 2005 04:13:12 -0000 2.37.2.11
@@ -291,10 +291,7 @@
self.decoded = {}
cset = Utils.GetCharSet(mlist.preferred_language)
cset_out = Charset(cset).output_charset or cset
- charset = message.get_param('charset', cset_out)
- if isinstance(charset, types.TupleType):
- # An RFC 2231 charset
- charset = unicode(charset[2], charset[0])
+ charset = message.get_content_charset(cset_out)
if charset:
charset = charset.lower().strip()
if charset[0]=='"' and charset[-1]=='"':
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org