[Mailman-Users] fixing shunted messages

Mark Sapiro mark at msapiro.net
Mon Mar 8 01:04:48 CET 2010


Patrick Okui wrote:
>
>I'm running the mailman that ships with opensuse 11.2 - running /usr/ 
>lib/mailman/bin/version gives:
>
>Using Mailman version: 2.1.11
>
>I have lots of email to my mailing lists stuck in the shunt queue (and  
>no, they aren't delivered). According to http://wiki.list.org/pages/viewpage.action?pageId=4030704 
>  and searches of the archives, it is to do with mailman not managing  
>to run one of the processes on the email.
>
>The tracebacks for these emails follows - could someone give me a clue  
>on why the queue runner and the archiver claim the messages have no  
>"get_type" ?


Because Mailman 2.1.11 is incompatible with python 2.6 in the first
place. See the FAQ at <http://wiki.list.org/x/pYA9>. Also, Mailman
2.1.11 should be using the email 2.5.8 package from Mailman's
pythonlib directory and it doesn't appear to be doing that either.


>Running unshunt doesn't deliver the messages, it just logs more such  
>tracebacks.


Because all unshunt does is reque the message in the original queue.
Until you fix the underlying problem that causes the messages to be
shunted in the first place, processing will throw the same exception
and shunt the message again.



>
>Mar 07 22:52:07 2010 (23634) SHUNTING:  
>1267989214.492028+f0d7863592a47b2376a3ed8719376f68600b8709
>Mar 07 22:52:07 2010 (23634) uncaught archiver exception at filepos: 0
>Mar 07 22:52:07 2010 (23634) Uncaught runner exception: Message  
>instance has no attribute 'get_type'
>Mar 07 22:52:07 2010 (23634) Traceback (most recent call last):
>   File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 120, in  
>_oneloop
>     self._onefile(msg, msgdata)
>   File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 191, in  
>_onefile
>     keepqueued = self._dispose(mlist, msg, msgdata)
>   File "/usr/lib/mailman/Mailman/Queue/ArchRunner.py", line 73, in  
>_dispose
>     mlist.ArchiveMail(msg)
>   File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 216, in  
>ArchiveMail
>     h.processUnixMailbox(f)
>   File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 564, in  
>processUnixMailbox
>     m = mbox.next()
>   File "/usr/lib/python2.6/mailbox.py", line 1955, in next
>     return self.factory(_PartialFile(self.fp, start, stop))
>   File "/usr/lib/mailman/Mailman/Mailbox.py", line 89, in scrubber
>     return mailbox.scrub(msg)
>   File "/usr/lib/mailman/Mailman/Mailbox.py", line 109, in scrub
>     return self._scrubber(self._mlist, msg)
>   File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py", line 192, in  
>process
>     ctype = part.get_type(part.get_default_type())
>AttributeError: Message instance has no attribute 'get_type'

-- 
Mark Sapiro <mark at msapiro.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