On Fri, Sep 10, 2010 at 1:22 PM, Mark Sapiro <[email protected]> wrote:
> 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 [email protected]
>>
>>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 <[email protected]>        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.
------------------------------------------------------
Mailman-Users mailing list [email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to