[Mailman-Users] How to change all members to "conceal address"("hide" on "membership list" page)

Mark Sapiro msapiro at value.net
Fri Sep 16 21:58:48 CEST 2005


Bill Morse wrote:

>I have changed the new members default to hide- how do I change all the
>existing members to hide?

If you have command line access, run

$ bin/withlist -l listname
Loading list listname (locked)
The variable `m' is the listname MailList instance
>>> from Mailman import mm_cfg
>>> for member in m.getMembers():
...    m.setMemberOption(member, mm_cfg.ConcealSubscription, 1)
...
>>> m.Save()
>>>
Unlocking (but not saving) list: listname
Finalizing
$

$ is the shell prompt. >>> and ... are Python prompts. The 'empty'
response to >>> is Control-D.

If you don't have command line access, see
http://starship.python.net/crew/jwt/mailman/#throughtheweb for a
script that uses the web interface to 'unhide' a list of members.
changing "'conceal':0" to "'conceal':1" will make it 'hide' the list
instead. The list of members must be in a file, but there is another
script at the same location that can make this file.

--
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