[Mailman-Users] Unknown encoding error

Khosrow Ebrahimpour khosrow.ebrahimpour at ec.gc.ca
Mon Jan 5 23:12:18 CET 2009

Hello list,

A week or so ago I ran across this problem on one of our mailing lists: A user 
had sent an email with an apparently bad subject line. This has caused 
mailman to stop delivering emails for that specific mailning list. Here's the 
error from the logfile:


Jan 05 21:25:10 2009 (23055) Uncaught runner exception: unknown encoding: Re: 
DDS 26073 : Imap - installation d
Jan 05 21:25:10 2009 (23055) Traceback (most recent call last):
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
    self._onefile(msg, msgdata)
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 167, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 130, in 
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 153, in 
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/var/lib/mailman/Mailman/Handlers/ToDigest.py", line 91, in process
    send_digests(mlist, mboxfp)
  File "/var/lib/mailman/Mailman/Handlers/ToDigest.py", line 132, in 
    send_i18n_digests(mlist, mboxfp)
  File "/var/lib/mailman/Mailman/Handlers/ToDigest.py", line 306, in 
    msg = scrubber(mlist, msg)
  File "/var/lib/mailman/Mailman/Handlers/Scrubber.py", line 240, in process
    url = save_attachment(mlist, part, dir)
  File "/var/lib/mailman/Mailman/Handlers/Scrubber.py", line 373, in 
    fnext = os.path.splitext(msg.get_filename(''))[1]
  File "/usr/lib/python2.3/email/Message.py", line 731, in get_filename
    return unicode(newvalue[2], newvalue[0] or 'us-ascii')
LookupError: unknown encoding: Re: DDS 26073 : Imap - installation d

Jan 05 21:25:10 2009 (23055) SHUNTING: 


The full subject line should be: 

RE: DDS 26073 : Imap - installation d'application 'vacation'

so I think the apostrophe is causing havoc here...

I have searched mailing list and the search engines, and it looks like this 
error was a problem for people but has been solved in subsequent versions of 
mailman (we are running 2.1.5 on Debian Sarge). What I haven't been able to 
find out is how to purge out the offending email, and continue life as normal 
until we upgrade to Etch!

I should say that I have tried removing the offending file from 
$MAILMANDIR/qfiles/shunt and running "unshunt", but nothing changed.

Any suggestions are most appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/mailman-users/attachments/20090105/7fccf84c/attachment.pgp>

More information about the Mailman-Users mailing list