#! /bin/bash # Give a luser a chance at a reprieve from a killfiling by mailing # the current user. exec 1>&2 # Everything goes to standard error if [ "X$1" == "X" -o "X$2" == "X" -o "X$3" == "X" ]; then echo "Usage: $0 victim newsgroup killfile-date" exit 1 fi /usr/lib/sendmail $LOGNAME <<-ENDMAIL From: The Rivan Court of Appeal <${LOGNAME}@riva.ucam.org> Subject: $1 is eligible for a reprieve A certain luser, $1, has been killfiled in the newsgroup $2 since $3. You elected to give this luser a chance at a reprieve. Please consider your verdict carefully, and run delkill "$1" $2 if you consider that he or she still deserves another chance. Thank you, -- The Rivan Court of Appeal ENDMAIL