[Mailman-Users] unpack list of wrong size - debugging a single list

chris burgess xurizaemon at gmail.com
Sun Aug 19 05:03:54 CEST 2007


Thanks, Mark.

It was as you suggested - a message with an attachment containing an
apostrophe in the filename. This had also knocked out a list a year
ago, and the cause was identical (but we didn't find the solution for
that list until now).

Is this bug #1518281 on SF, or if not, which release of Mailman fixes
this? I'd like to be able to get my Mailman install (currently Debian
stable's 2.1.5-8sarge5) fixed for that specific bug - it's the only
thing which has knocked service out on our listserver in several years
:)

At least I'll know what to look for next time - much appreciated, Mark!

On 8/19/07, Mark Sapiro <msapiro at value.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> chris burgess wrote:
> >
> > Here's an example of what I see in the mailman error log for any
> > message to this list:
> >
> > ---
> >
> > Aug 17 15:39:16 2007 (29254) Uncaught runner exception: unpack list of
> > wrong size
> > Aug 17 15:39:16 2007 (29254) 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 _dispose
> >     more = self._dopipeline(mlist, msg, msgdata, pipeline)
> >   File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", 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 273, in process
> >     url = save_attachment(mlist, part, dir)
> >   File "/var/lib/mailman/Mailman/Handlers/Scrubber.py", line 373, in
> > save_attachment
> >     fnext = os.path.splitext(msg.get_filename(''))[1]
> >   File "/usr/lib/python2.3/email/Message.py", line 725, in get_filename
> >     filename = self.get_param('filename', missing, 'content-disposition')
> >   File "/usr/lib/python2.3/email/Message.py", line 608, in get_param
> >     for k, v in self._get_params_preserve(failobj, header):
> >   File "/usr/lib/python2.3/email/Message.py", line 555, in _get_params_preserve
> >     params = Utils.decode_params(params)
> >   File "/usr/lib/python2.3/email/Utils.py", line 337, in decode_params
> >     charset, language, value = decode_rfc2231(EMPTYSTRING.join(value))
> >   File "/usr/lib/python2.3/email/Utils.py", line 284, in decode_rfc2231
> >     charset, language, s = parts
> > ValueError: unpack list of wrong size
> >
> > ---
> >
> > This is the resulting pickle file in qfiles/shunt for the same message:
>
>
> The shunted message is not the one causing the problem. The problem is
> one of the older messages in the lists/<listname>/digest.mbox file.
>
> Every post to the list attempts to produce a digest based on size and
> scrubber encounters this error (which is most likely due to a known and
> recently fixed bug in RFC 2231 header decoding).
>
> See
> <http://mail.python.org/pipermail/mailman-users/2007-July/057768.html>
> for additional info on what to look for in the digest.mbox to fix this.
>
> - --
> Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
>
> iD8DBQFGx6I0VVuXXpU7hpMRAu7oAKDH3P0pn4ZhUxlgO/3TL14uwGZSZACfRt9T
> h8+azlACjBJ7tjclze/zIJ8=
> =1z+H
> -----END PGP SIGNATURE-----
>


-- 
-- chris burgess, giant robot ltd
-- emailing you from gmail.com
--


More information about the Mailman-Users mailing list