[Mailman-Users] Uncaught runner exception: 'utf8' codec can'tdecode bytes in position 1-4: invalid data

Mark Sapiro msapiro at value.net
Sun Sep 11 20:34:14 CEST 2005

Aliet Santiesteban Sifontes wrote:

>Hi list, I'm running mailman for several lists on
>debian sarge, mailman-2.1.5-8, suddenly one of of the
>lists stops working, maybe by spam or dos attack using
>a bug in mailman, here the error, any ideas on how ti
>fix this??:
>Sep 11 13:34:35 2005 (12535) Uncaught runner
>exception: 'utf8' codec can't decode bytes in position
>1-4: invalid data
>Sep 11 13:34:35 2005 (12535) 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
>line 130, in _dispose
>    more = self._dopipeline(mlist, msg, msgdata,
>  File
>line 153, in _dopipeline
>    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_digests
>    send_i18n_digests(mlist, mboxfp)
>  File
>"/var/lib/mailman/Mailman/Handlers/ToDigest.py", line
>306, in send_i18n_digests
>    msg = scrubber(mlist, msg)
>  File
>"/var/lib/mailman/Mailman/Handlers/Scrubber.py", line
>265, in process
>    url = save_attachment(mlist, part, dir)
>  File
>"/var/lib/mailman/Mailman/Handlers/Scrubber.py", line
>361, in save_attachment
>    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
>UnicodeDecodeError: 'utf8' codec can't decode bytes in
>position 1-4: invalid data
>Sep 11 13:34:35 2005 (12535) SHUNTING:

A message has been posted to the list with an attached file. The
scrubber is trying to create a file name for the scrubbed attachment
using the filename of the attachment, but the filename is either
unparseable from the message or garbled in some way.

The bad message is probably in the lists/<listname>/digest.mbox file.
Try moving that file aside or editing it and see if that allows the
list to resume working. If so, you may be able to reprocess the
shunted messages with bin/unshunt, but that may cause the error to

Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list