[Mailman-Developers] Problems with latest CVS version

Chris Ryan chris@greatbridge.com
Tue, 27 Feb 2001 10:56:04 -0500


I setup the latest of mailman from cvs yesterday and I'm having some
difficulty getting it all working.

My first problem was with /scripts/mailcmd on line 49:

print >> sys.stderr 'Mailman error: mailcmd got bad listname: %s\n%s' \

                   ^ -- missing comma after sys.stderr

I also had a problem with the mimelib import where everything worked
from from the command line but wouldn't work from the cron or when
sendmail called the wrapper commands. I fixed this by creating a soft
link:
$ ln -s /usr/local/lib/python2.0/site-packages/mimelib
/home/mailman/Mailman/mimelib

The problem I'm currently having now is also in mailcmd and mailowner
with the following error:

mailcmd(12300):   File "/home/mailman/scripts/mailcmd", line 69, in ?
mailcmd(12300):      main()
mailcmd(12300):   File "/home/mailman/scripts/mailcmd", line 53, in main
mailcmd(12300):      msg = Message.Message(sys.stdin)
mailcmd(12300): TypeError :  too many arguments; expected 1, got 2

I looked into it and found that Mailman.Message.Message inherited from
mimelib.Message.Message had __init__(self) and no other means of parsing
the actual message. I would think that somewhere Parser should be used
to parse the message but I'm not sure where or how to maintain the
Mailman.Message.Message functionality that was added in the inheritance.

Does anyone know how this should be fixed or what I did wrong? I have
the latest of mimelib 0.2 installed.

Chris Ryan
chris@greatbridge.com