I know many people have asked for a way to remove a single address from multiple 
lists. Here's my solution (run as a script):

#!/bin/ksh
if [ -z $1 ];then
        print usage: mass_remove email_address
        exit
fi
email=$1
lists=`/home/mailman/bin/find_member $email |grep -v found`
if [ ""$lists"" -eq '' ];then
        print address not found
        exit 1
fi
print deleting $email from:
for list in $lists
do
        print $list
        /home/mailman/bin/remove_members $list $email
done


------------------------------------------------------
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users

Reply via email to