[Mailman-Users] Re: remove_members by other users

Szilard Vizi vizisz at freemail.hu
Tue Oct 2 13:28:30 CEST 2001


Ben-Nes Michael <miki at canaan.co.il> wrote:
 
> I need to be able executing remove_members by other users ( like
> nobody )

Maybe I can give you a trick.
Generate a list of the members who you want to delete from the list
as the "other user" and dump it to a text file which is readable and
writable for Mailman.

Save this script into your Mailman/bin/ dir as delete.sh:
 
#!/bin/bash
 if [ -f /tmp/unwanted_members.txt ]; then 
       ~/bin/remove_members -f  /tmp/unwanted_members.txt listname
       rm -rf /tmp/unwanted_members.txt
 fi
 
And run this script from the Mailman's crontab entry. Eg. if you
want to syncronize your memberlist every day 5 am:

  0 5 * * * /home/mailman/bin/delete.sh

That is all.
 
Szilard Vizi
-------------
mailto:vizisz at freemail.hu             UIN:10676592




More information about the Mailman-Users mailing list