chiark / gitweb /
Initial import of $HOME/bin.
[bin.git] / reprieve
1 #! /bin/bash
2
3 # Give a luser a chance at a reprieve from a killfiling by mailing
4 # the current user.
5
6 exec 1>&2       # Everything goes to standard error
7
8 if [ "X$1" == "X" -o "X$2" == "X" -o "X$3" == "X" ]; then
9         echo "Usage: $0 victim newsgroup killfile-date"
10         exit 1
11 fi
12
13 /usr/lib/sendmail $LOGNAME <<-ENDMAIL
14         From: The Rivan Court of Appeal <${LOGNAME}@riva.ucam.org>
15         Subject: $1 is eligible for a reprieve
16
17         A certain luser, $1, has been killfiled in the newsgroup
18         $2 since $3.
19
20         You elected to give this luser a chance at a reprieve. Please
21         consider your verdict carefully, and run
22
23           delkill "$1" $2
24
25         if you consider that he or she still deserves another chance.
26
27         Thank you,
28
29         -- 
30         The Rivan Court of Appeal
31 ENDMAIL
32