[Mailman-Users] config_list
Barry A. Warsaw
barry at digicool.com
Tue Jan 2 23:56:41 CET 2001
>>>>> "MM" == Marc MERLIN <marc_news at valinux.com> writes:
On Tue, Dec 26, 2000 at 02:11:25PM -0500, Kenneth Jacker wrote:
> I'd like to use "config_list" to transfer list ALPHA's configuration
> to a new list BETA. Is this the recommended procedure?
>
>
> 1) bin/config_list -o config.ALPHA ALPHA
>
> 2) cp config.ALPHA config.BETA
>
> 3) Use an editor to change all occurrences of "ALPHA" in
> "config.BETA" to "BETA"
>
> 4) bin/newlist BETA
>
> 5) bin/config_list -i config.BETA BETA
MM> You will lose your list membership if you do that.
You shouldn't, since the list attributes containing membership
information aren't dumped by config_list -o.
Remember one interesting thing about config_list that I think most
people are not aware of: you can dump a list's configuration with
config_list -o, then edit the resulting file, removing any
configuration variables that you don't want to change. When you suck
the edited file back into the list with config_list -i, only the
listed variables will be changed.
You could use this, e.g. to change the web_page_url value for all your
lists. Just create a file that contains
-------------------- snip snip --------------------
web_page_url = 'http://mynew.site.com/mailman/'
-------------------- snip snip --------------------
and then config_list -i this into all your lists using a shell loop.
Viola! All other list configuration variables will stay unchanged.
-Barry
More information about the Mailman-Users
mailing list