[Mailman-Users] modify many lists?

Richard Barrett R.Barrett at ftel.co.uk
Thu Apr 10 15:52:17 CEST 2003


At 14:02 10/04/2003, Dave  Stern - Former Rocket Scientist wrote:
>On Thu, 10 Apr 2003, CARTER Anthony wrote:
>
> > You can turn of archiving completely for all lists in the Default.py (make
> > changes in mm_cfg.py) file...However, I think that you don't want ALL lists
> > removed...That, i don't know about...
> >
> > Anthony
> >
> >
> > On Thursday 10 April 2003 14:34, Dave Stern - Former Rocket Scientist 
> wrote:
> > > Is it possible to make a change to many lists (eg turn off archiving)
> > > without having to go to each webpage?  I guess what I'm looking for is
> > > something like
> > > dumpdb $PREFIX/lists/$LISTNAME/config.db | sed ....|convertdb
> > > ie dump the list config into ascii, modify it and convert it back.
> > >
>
>That's for future lists (those not yet created). This doesn't help for
>current lists...
>
>  =-=-=-=-=-=-=-=-=-=-=-=-  generated by /dev/dave 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  David Stern                                            University of 
> Maryland
>                 Institute for Advanced Computer Studies

If you have command line access then I find $prefix/bin/withlist is my 
friend for this sort of endeavour.

If the content of the short withlist script file $prefix/bin/fix_remind.py 
is as follows:

 >>>>>> snip--------------------------
def fix_remind(mlist):
     mlist.send_reminders = 0
     mlist.Save()
<<<<<< snip--------------------------

then executing the following command line from inside your $prefix directory:

     ls -1 lists | xargs -n 1 bin/withlist -l -r fix_remind

will turn off "send password reminders" for all of your lists.

This is easily adapted to manipulating other list attributes.




More information about the Mailman-Users mailing list