On 5/8/2013 12:41 PM, Christopher Adams wrote:
> I have been tasked to look into modifying all existing lists to be
> non-advertised. I have some knowledge of how withlist works with python.
> Has anyone created a module for use with python taht will accomplish this.
> I may have to get in and learn python again.


You don't need withlist for this, although you could do it with
something as simple as

def set_non_advertised(mlist):
    mlist.advertised = 0

All you need to do is create a one-line file containing

advertised = 0

and run

#! /bin/sh
cd /path/to/mailman
for list in `bin/list_lists --bare` ; do
    bin/config_list -i /path/to/file
done

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to