[Mailman-Users] Membership Management PHP UI

Mark Sapiro mark at msapiro.net
Tue Jun 17 01:07:51 CEST 2014

On 06/16/2014 03:54 PM, Peter Knowles wrote:
> Lindsay,
> You had mentioned something about "withlist" being the script which may can
> do pretty much everything. Could this script be used for "updating"
> subscriber settings, and if so could you give an example?

Actually, both withlist and config_list can do anything including
irrevocably breaking your lists if you don't know what you're doing.

See <http://www.msapiro.net/scripts/> for some examples. These are all
scripts, some withlist and some stand alone, for doing various Mailman
tasks. They exist as a resource for people who want to use them as is,
but mainly they exist as example of how to do things.

withlist is a framework for passing a list object or all lists objects
sequentially to a script and taking care of a bit of housekeeping.
Withlist can also be invoked as an interactive Python shell with access
to a list object and Mailman's Python API.

config_list is normally just given some input like

attribute = value

to update list attributes, but it works by executing the input file as a
Python script and then examining the returned namespace to see what was
done. It also passes the list object to the execiting input, so the
input can actually do any legal Python thing with that list object.

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