[Mailman-Users] Removing single address from multiple lists

Sarah K. Miller techgrrl at beeze.com
Wed Jun 6 04:38:04 CEST 2001


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





More information about the Mailman-Users mailing list