[Mailman-Users] Mass Footer Change
sfeng at stanford.edu
Mon Oct 30 18:35:06 CET 2006
> > Reply-To: Jason [WeatherServer] <Jason at Weatherserver.net>
> > To: mailman-users at python.org
> > Subject: [Mailman-Users] Mass Footer Change
> > Date: Mon, 30 Oct 2006 02:18:33 -0500
> > I am completely Python stupid. How can I do a mass change of all footers on the lists I run without going list to list using the web interface.
Create a script, for example, call it 'newfooter.py' and save it under
the same diretory as 'withlist' script (/usr/lib/mailman/bin for my
def newfooter(mlist, file):
fp = open(file)
nfooter = fp.read()
mlist.msg_footer = nfooter
Then you can run (as root or mailman user):
withlist -l -r newfooter <list> <file>
This will change the footer of <list> with the content in <file>.
You wil need a script around it to feed it with multiple lists.
This probably doesn't help much if you don't have login access to the
mailman server. We developed a remote command line interface so our
list owners can manage their lists via command line without having to
login to the server.
Xueshan Feng (aka. Susan Feng)
Shared Services, ITSS
Stanford University, CA 94305-3090
255 Panama St.
Room 157, Polya Hall
Stanford, CA 94305-4136
More information about the Mailman-Users