[Mailman-Users] deleting users over multiple lists

Ryan Steele steele at agora-net.com
Mon Jun 4 15:33:13 CEST 2007


Juan Miscaro wrote:
> Is there any way to delete subscriber addresses over multiple lists
> easily (command line)?  I am using Mailman 2.1.8 on OpenBSD 4.0.
>
>   

Maybe something like this for a single user:
for list in `bin/list_lists | awk '{print $1}'` do;
     bin/remove_members $list username
done

...or this for multiple users
users='foo bar baz'
for list in `bin/list_lists | awk '{print $1}'` do;
     bin/remove_members $list users
done

> I also want to be able to remove all addresses from particular domains.
>   

You mean, remove all members from all lists belonging to a particular 
domain name?

> I am looking at the remove_members command but I'm not sure.  I don't
> want to mess up.
>
> Thank you.
>
> Juan
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe: http://mail.python.org/mailman/options/mailman-users/steele%40agora-net.com
>
> Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
>   


-- 
Ryan Steele
Systems Administrator



More information about the Mailman-Users mailing list