[Mailman-Users] Resetting digest option for all subscribers

Mark Sapiro msapiro at value.net
Sat May 28 18:31:36 CEST 2005

Joshua Beall wrote:
>Is there a way to globally reset the digest option to "on" or "off" for all 

You can use bin/withlist to do this. The following is an example of an
interactive withlist session that does this for a list named
'listname'. The >>> and ... are Python prompts. At the second ...
prompt, just type the return or enter key. At the last >>> prompt,
type control-D.

$ 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.getDigestMemberKeys():
...     m.setMemberOption(member, mm_cfg.Digests, 0)
>>> m.Save()
Unlocking (but not saving) list: mailman

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