[Mailman-Users] changing Member Options or Import dumpdb

Mark Sapiro msapiro at value.net
Wed Jul 26 05:27:46 CEST 2006


Michael Menge wrote:
>
>I want to change the language of all members in a mailinglist. I did't 
>find a direct way so I thought I dump the config.pck file with dumpdb 
>edit the language with search and import the changed output back.
>
>But i did't find a way to import the output of dumpdb back to the 
>config.pck.

You can do it with either bin/config_list or bin/withlist. Using
config_list is probably easier.

The output of bin/dumpdb contains

    'language': {   'u1 at example.com': 'l1',
                    'u2 at example.com': 'l2',
                     ...
                    'un at example.com': 'ln'},

assuming you have edited this to

    'language': {   'u1 at example.com': 'll',
                    'u2 at example.com': 'll',
                     ...
                    'un at example.com': 'll'},

Edit it further to

mlist.language = {   'u1 at example.com': 'll',
                    'u2 at example.com': 'll',
                     ...
                    'un at example.com': 'll'},

and use it as the input to

bin/config_list -i input listname

See "bin/config_list --help".

-- 
Mark Sapiro <msapiro at value.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