>From: Thomas Gramstad <email@example.com>
>Subject: Global unsub?
>I know that a zubscriber can unzub themself from all the lists at a
>site with the unzubscribe * command. But can I unzub a given
>zubscriber from all lists with one command?
I don't think that MD supports this, but I use the following shell
script and it is very handy. Note that for each list it actually finds
the password. You must of course run this from an account that has read
access on the password files.
# Unsubscribe the arguments from all lists
if [ $OPTIONS ]
USAGE="Usage: $PROG [-$OPTIONS] name [...]"
USAGE="Usage: $PROG name [...]"
while getopts h$OPTIONS x
case $x in
h|\?) echo "$USAGE"
echo "unsubscribe all arguments from all lists"
echo "\t$PROG -D\tDebug"
exit 1 ;;
*) echo "$USAGE" ; exit 1 ;;
shift `expr $OPTIND - 1`
case $# in
0) echo "Nothing done"
exit 1 ;;
FILES=`\ls | grep -v '\.' | grep -v $EXCLUDE`
for L in `grep -i -l $i $FILES`
echo "approve $PASSWORD $ACTION $L $i"
) | $PROCESS
Bill Silvert, Habitat Ecology Section, Bedford Institute of Oceanography,
P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2, Tel. (902)426-1577