[Mailman-Users] Batch member attributes

Patrick Bogen pdbogen at gmail.com
Wed May 24 23:43:57 CEST 2006


On 5/24/06, Benjamin Roger <rogerben at rz.hu-berlin.de> wrote:
> Isn't there something like a shell script for the withlist console? It
> would really be cool to be able to apply those commands to all lists at
> once, or, at least, to a particular list using a single command.
>
FAQ 03.016 has a good example of how to use withlist like this:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.016.htp

The important bits are the 'changeuserpw.py' it uses and the 'withlist
-l -r changeuserpw $list $member $passwd' line.
Basically, wrap your commands inside a python function (subroutine?
whatever python calls 'em), and give it arguments with the withlist
commands.

-- 
- Patrick Bogen



More information about the Mailman-Users mailing list