etherpad: configure DB charset like docs recommend
[ansible.git] / roles / email / templates / dovecot / quota-warning.sh
1 #!/bin/sh
2 set -e
3
4 PERCENT=$1
5 FROM="{{postfix.postmaster}}"
6
7 msg="From: $FROM
8 To: $USER
9 CC: $FROM
10 Subject: Dein Posteingang ist $PERCENT% voll / Your mailbox is $PERCENT% full
11 Content-Type: text/plain; charset=UTF-8
12
13 Dein Posteingang ist zu $PERCENT% voll. Bitte räume etwas auf!
14
15 Your mailbox is now $PERCENT% full. Please clean it up a bit!"
16
17 echo -e "$msg" | /usr/sbin/sendmail -f "$FROM" "$USER" "$FROM"
18
19 exit 0