[Mailman-Users] Setting Moderation Flag via command line
jbernier at risd.edu
Fri Sep 10 19:45:01 CEST 2010
On Fri, Sep 10, 2010 at 1:22 PM, Mark Sapiro <mark at msapiro.net> wrote:
> Jeff Bernier wrote:
>>I am using the command line to set, or unset a members moderation flag as
>>./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
Thank you for your help with this. 'xargs" worked perfectly...and yes
Mark, it is the set_mod.py you assumed I was referring to.
More information about the Mailman-Users