]> git.netwichtig.de Git - user/henk/code/shell/rif.git/blob - rif-invitefriend.sh
Update all files to use RI6F instead of RIF
[user/henk/code/shell/rif.git] / rif-invitefriend.sh
1 #!/bin/sh
2 # 2019-09-10, Nico Schottelius, Seoul
3
4 if [ $# -ne 4 ]; then
5     echo "$0: <friendname> <friendemail> <your URL> <your name>"
6     echo 'F.i. $0 nico ipv6@nico.ungleich.cloud https://your-url.example.com'
7     exit 1
8 fi
9
10 friend=$1; shift
11 email=$1;  shift
12 url=$1;    shift
13 name=$1;   shift
14
15 keyurl=$url/rifkeys
16 projecturl=https://code.ungleich.ch/nico/rif
17
18 cat <<EOF | mail -s "Real IPv6 friend request" "${email}"
19 Hello ${friend},
20
21 I want to invite you to become my real IPv6 friend.
22 You can find my friends including my key on ${keyurl}.
23
24 On $projecturl you can find out how to become my friend.
25
26 Looking forward to hearing from you,
27
28 $name
29 EOF