[Mailman-Users] Setting Moderation Flag via command line
Mark Sapiro
mark at msapiro.net
Fri Sep 10 19:22:38 CEST 2010
Jeff Bernier wrote:
>
>I am using the command line to set, or unset a members moderation flag as
>follows:
>
>./withlist -r set_mod staff -u emailaddress at domain.com
>
>Is there a way to do this for many members by specifying them with an input
>file, rather than entering them all in a very long command line?
Assuming this is set_mod.py from
<http://www.msapiro.net/scripts/set_mod.py>, there is also a
-d/--domain option that can be used to specify a regular expression
pattern for doing all members whose addresses match the pattern.
It wouldn't be difficult to teach set_mod.py to read a file, but you
could always just do
xargs < FILE ./withlist -r set_mod staff -u
to read the addresses from FILE.
--
Mark Sapiro <mark at msapiro.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