projects
/
ansible.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f87b435
)
fix quota emails
author
Ralf Jung
<post@ralfj.de>
Fri, 27 Oct 2023 16:18:48 +0000
(18:18 +0200)
committer
Ralf Jung
<post@ralfj.de>
Fri, 27 Oct 2023 16:18:48 +0000
(18:18 +0200)
roles/email/templates/dovecot/quota-warning.sh
patch
|
blob
|
history
diff --git
a/roles/email/templates/dovecot/quota-warning.sh
b/roles/email/templates/dovecot/quota-warning.sh
index f834d1c45c0e2b74b1431dd6e28242d75f7ab941..96951b5c4c6df01c00b233193be516d9001a9896 100644
(file)
--- a/
roles/email/templates/dovecot/quota-warning.sh
+++ b/
roles/email/templates/dovecot/quota-warning.sh
@@
-1,7
+1,8
@@
-#!/bin/sh
+#!/bin/
ba
sh
set -e
PERCENT=$1
set -e
PERCENT=$1
+USER=$2
FROM="{{postfix.postmaster}}"
msg="From: $FROM
FROM="{{postfix.postmaster}}"
msg="From: $FROM
@@
-14,6
+15,6
@@
Dein Posteingang ist zu $PERCENT% voll. Bitte räume etwas auf!
Your mailbox is now $PERCENT% full. Please clean it up a bit!"
Your mailbox is now $PERCENT% full. Please clean it up a bit!"
-echo
-e
"$msg" | /usr/sbin/sendmail -f "$FROM" "$USER" "$FROM"
+echo "$msg" | /usr/sbin/sendmail -f "$FROM" "$USER" "$FROM"
exit 0
exit 0