1 |
#!/bin/sh |
2 |
|
3 |
[ $# = 2 ] || exit 1 |
4 |
|
5 |
to="$2" |
6 |
bcc='treasurer@mageia.org' |
7 |
from='Mageia Treasurer <treasurer@mageia.org>' |
8 |
subject='Thanks for your donation to the Mageia project' |
9 |
case "$1" in |
10 |
paypal) |
11 |
echo "Press enter to send thanks to $to ($1)" |
12 |
read z |
13 |
mailx -b "$bcc" -r "$from" -s "$subject" "$to" <<EOF |
14 |
Thanks for supporting the Mageia project with a donation ! |
15 |
|
16 |
We inform you that we correctly received your donation and that it will |
17 |
soon be listed on our donations website at the following URL : |
18 |
|
19 |
https://treasurer.mageia.org/donations_all.html |
20 |
|
21 |
Note that the amount indicated on the website is a little lower than |
22 |
what you paid, because of the paypal fees. |
23 |
|
24 |
In case of error in your name, or if you want your donation to be |
25 |
anonymous, please let us know by answering to this email and we will |
26 |
correct it. |
27 |
|
28 |
EOF |
29 |
break |
30 |
;; |
31 |
|
32 |
anonymous) |
33 |
echo "Press enter to send thanks to $to ($1)" |
34 |
read z |
35 |
mailx -b "$bcc" -r "$from" -s "$subject" "$to" <<EOF |
36 |
Thanks for supporting the Mageia project with a donation ! |
37 |
|
38 |
We inform you that we correctly received your donation and that it will |
39 |
soon be listed on our donations website at the following URL : |
40 |
|
41 |
https://treasurer.mageia.org/donations_all.html |
42 |
|
43 |
Note that the amount indicated on the website is a little lower than |
44 |
what you paid, because of the paypal fees. |
45 |
|
46 |
As you requested this donation to be anonymous, it will appear under |
47 |
the "Anonymous" name. |
48 |
|
49 |
EOF |
50 |
break |
51 |
;; |
52 |
|
53 |
*) |
54 |
echo "Unknown $1" |
55 |
exit 1 |
56 |
break |
57 |
;; |
58 |
esac |