[ mailman-Bugs-926034 ] Crashes on encoding errors

Bugs item #926034, was opened at 2004-03-30 16:06 Message generated for change (Comment added) made by heikkilevanto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=926034&group_id=103 Category: Pipermail Group: 2.1 (stable) Status: Open Resolution: None Priority: 5 Submitted By: Heikki Levanto (heikkilevanto) Assigned to: Nobody/Anonymous (nobody) Summary: Crashes on encoding errors Initial Comment: I have seen crashes on some Danish-speaking lists, where users put Danish characters in the headers. It seems to depend on the encoding used. I do not have much statistical material, as I can not produce the crash myself, but have to ask some of the "troublemakers" to post a test message every time I need to see the crash. Here is a traceback: Mar 30 15:17:03 2004 (339) Uncaught runner exception: unknown encoding Mar 30 15:17:03 2004 (339) Traceback (most recent call last): File "/home/mailman/Mailman/Queue/Runner.py", line 105, in _oneloop self._onefile(msg, msgdata) File "/home/mailman/Mailman/Queue/Runner.py", line 155, in _onefile keepqueued = self._dispose(mlist, msg, msgdata) File "/home/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose more = self._dopipeline(mlist, msg, msgdata, pipeline) File "/home/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline sys.modules[modname].process(mlist, msg, msgdata) File "/home/mailman/Mailman/Handlers/CookHeaders.py", line 75, in process prefix_subject(mlist, msg, msgdata) File "/home/mailman/Mailman/Handlers/CookHeaders.py", line 262, in prefix_subject h.append(s, c) File "/home/mailman/pythonlib/email/Header.py", line 285, in append s = s.encode(outcodec, errors) LookupError: unknown encoding The sad thing is that these mails just disappear, and my users wonder why they can not post to the list. Even a bounce would be to prefer, or at least something in the log that tells whom I could send apologies to... Here are the headers of one offending message, as sent directly to my mailbox: format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by smtp020.tiscali.dk id i2UDlKsm001688 Note that the subject line carries encoding "windows-1252", which comes from Mime-Autoconversion at tiscali.dk. The sender claims (and I believe him) that in his end the subject line looks something like this: Subjekt: Test mail encoded =?ISO-8859-1?Q?=5B=E6=F8=E5_=C6=C5=D8=5D?= I am not asking mailman to support mysterious windows code pages, but if it could handle unknown encodings better (ie without crashing) I would be much happier. I am also sending a polite letter to tiscali.dk, asking them to get their act together. ----------------------------------------------------------------------
Comment By: Heikki Levanto (heikkilevanto) Date: 2004-03-30 16:51
Message: Logged In: YES user_id=854974 Sorry, forgot to specify that I run on a Debian/Stable, with hand-installed mailman 2.1.2 from June 2003. It may also be that the original mail in my example was written in MS-Word, and pasted from there to Mozilla. Maybe that has something to do with the encoding, perhaps more than tiscali.dk's autoconversion. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=926034&group_id=103
participants (1)
-
SourceForge.net