[Mailman-Users] queue runner keeps crashing

Richard Barrett R.Barrett at ftel.co.uk
Mon Aug 12 17:12:49 CEST 2002


At 15:35 12/08/2002 +0200, Franz Georg =?iso-8859-15?Q?K=F6hler?= wrote:
>All of the sudden, Mailman V. 2.0.11 stopped working, I'm getting those
>messages in the log file:
>
>
>Aug 12 15:17:03 2002 qrunner(453): Traceback (innermost last):
>Aug 12 15:17:03 2002 qrunner(453):   File "/usr/lib/mailman/cron/qrunner", 
>line 283, in ?
>Aug 12 15:17:03 2002 qrunner(453):      kids = main(lock)
>Aug 12 15:17:03 2002 qrunner(453):   File "/usr/lib/mailman/cron/qrunner", 
>line 253, in main
>Aug 12 15:17:03 2002 qrunner(453):      keepqueued = 
>dispose_message(mlist, msg, msgdata)
>Aug 12 15:17:03 2002 qrunner(453):   File "/usr/lib/mailman/cron/qrunner", 
>line 157, in dispose_message
>Aug 12 15:17:03 2002 qrunner(453): mlist.ParseMailCommands(msg)
>Aug 12 15:17:03 2002 qrunner(453):   File 
>"/usr/lib/mailman/Mailman/MailCommandHandler.py", line 123, in 
>ParseMailComAug 12 15:17:03 2002 qrunner(453):      precedence = 
>msg.get('precedence', '').lower()
>Aug 12 15:17:03 2002 qrunner(453): AttributeError :  'string' object has 
>no attribute 'lower'
>Aug 12 15:18:01 2002 qrunner(687): Traceback (innermost last):
>Aug 12 15:18:01 2002 qrunner(687):   File "/usr/lib/mailman/cron/qrunner", 
>line 283, in ?
>Aug 12 15:18:01 2002 qrunner(687):      kids = main(lock)
>Aug 12 15:18:01 2002 qrunner(687):   File "/usr/lib/mailman/cron/qrunner", 
>line 253, in main
>Aug 12 15:18:01 2002 qrunner(687):      keepqueued = 
>dispose_message(mlist, msg, msgdata)
>Aug 12 15:18:01 2002 qrunner(687):   File "/usr/lib/mailman/cron/qrunner", 
>line 157, in dispose_message
>Aug 12 15:18:01 2002 qrunner(687): mlist.ParseMailCommands(msg)
>Aug 12 15:18:01 2002 qrunner(687):   File 
>"/usr/lib/mailman/Mailman/MailCommandHandler.py", line 123, in 
>ParseMailComAug 12 15:18:01 2002 qrunner(687):      precedence = 
>msg.get('precedence', '').lower()
>Aug 12 15:18:01 2002 qrunner(687): AttributeError :  'string' object has 
>no attribute 'lower'
>
>
>Mailman successfully receives mail but is unable to re-distribute it.
>
>
>
>update:
>I just upgraded to V. 2.0.12 with a slight hope this could solve
>my problem, however, it still exists.
>
>
>I'll be grateful for all hints that might lead to solving this.

Upgrade to MM 2.0.13 which, amongst other things, cures this leakage of 
Python 2.x functionality into code that should be Python 1.x compatible or 
upgrade your Python installation to 2.1 or 2.2.

fyi the problem is that various functions from the string module became 
member functions of string objects in Python 2.0 and above. The usage 
causing the problem:

         msg.get('precedence', '').lower

should have been coded as follows to be Python 1.x compatible:

         string.lower(msg.get('precedence', ''))

I believe MM 2.0.13 fixes these glitches that appeared post 2.0.8 if I 
recollect correctly; the one you've stumbled on was not alone.






More information about the Mailman-Users mailing list