configure lists with text file or programatically.
I have created a dozen or so lists and I want to change the settings of all of them in a similar way.
This file seems to hold the config data; /var/lib/mailman/lists/<listname>/config.pck.last
But it is not friendly. Is there a way to programatically or with a text editor apply settings?
Thanks for any advice.
-- Best regards, Eric Smith Mobile: 00 31 6 455 09313 - Tel Wageningen: +31 317 728888
This seems to be a nice solution;
$ sudo config_list -o /dev/stdout <listname> |sed 's/advertised = .*/advertised = False/' -e 's/foo/bar/ |sudo config_list -i /dev/stdin <listname>
Eric Smith wrote on Thu-30-Aug 12 8:23PM
I have created a dozen or so lists and I want to change the settings of all of them in a similar way.
This file seems to hold the config data; /var/lib/mailman/lists/<listname>/config.pck.last
But it is not friendly. Is there a way to programatically or with a text editor apply settings?
Thanks for any advice.
Eric Smith wrote:
This seems to be a nice solution;
$ sudo config_list -o /dev/stdout <listname> |sed 's/advertised = .*/advertised = False/' -e 's/foo/bar/ |sudo config_list -i /dev/stdin <listname>
This is unduly complicated. The input to config_list need only contain those things you want to change so you could just do
cat << EOF | sudo config_list -i /dev/stdin <listname> advertised = False bar EOF
Also, see <http://www.msapiro.net/scripts/set_attributes>, a script which processes things like
set_attributes "advertised = False" "foo = bar" listname
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Eric Smith
-
Mark Sapiro