[Mailman-Users] UnicodeDecodeError during Archive Obscuring
Jim Popovitch
yahoo at jimpop.com
Sun Nov 25 01:24:44 CET 2007
I've seen a increase in use of Unicod'ed email address which fail
HyperArch email obscuring and thus cause the msg to be shunted and not
archived.
Specifically the problem lies in the encoding (strangely the error says
"Decode") of the text ' at ' (as a substitute for "@") for Russian
users of GMail.
Here is the error in full:
----------------------------------------------------------------------------
Nov 22 04:42:31 2007 (755) Uncaught runner exception: 'ascii' codec
can't decode byte 0xd0 in position 1: ordinal not in range(128)
Nov 22 04:42:31 2007 (755) Traceback (most recent call last):
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 112, in
_oneloop
self._onefile(msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 170, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/ArchRunner.py", line 89, in
_dispose
mlist.ArchiveMail(msg)
File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 250, in
ArchiveMail
h.processUnixMailbox(f)
File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 580, in
processUnixMailbox
self.add_article(a)
File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 621, in
add_article
filename))
File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 1275, in
write_article
f.write(article.as_text())
File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 579, in
as_text
atmark = unicode(_(' at '), Utils.GetCharSet(self._lang))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 1:
ordinal not in range(128)
Nov 22 04:42:31 2007 (755) SHUNTING: 1195717174.0985031
+6fdaf61658ca76ec5281e614be7b4b59d1e01bf6
----------------------------------------------------------------------------
This is a Mailman 2.1.9 system.
I did search the archives quite extensively, but I didn't find any cases
where Mailman was having trouble encoding the hard coded ' at ' into
unicode.
Here is a sample (modified from original to protect the innocent) of the
message "From:" line:
"=?ISO-8859-5?B?pyvY7zB08L6a0C==?=" <abc.xyz at gmail.com>
Any ideas on what to try/test/do?
Thanks!
-Jim P.
More information about the Mailman-Users
mailing list