summaryrefslogtreecommitdiff
path: root/sendmailadvanced.conf
diff options
context:
space:
mode:
Diffstat (limited to 'sendmailadvanced.conf')
-rwxr-xr-xsendmailadvanced.conf32
1 files changed, 13 insertions, 19 deletions
diff --git a/sendmailadvanced.conf b/sendmailadvanced.conf
index 7b37bfc..cf7932d 100755
--- a/sendmailadvanced.conf
+++ b/sendmailadvanced.conf
@@ -11,28 +11,22 @@ hashcash_bits=22
# things to put into head of (body of) email
body_header_hook()
{
- true
+ [ "$(whoami)" == "root" ] && [ "$1" == "last-backups" ] && return 0
+ echo "Unkonwn header-hook: '$1'"
}
# things to put into foot of email
body_footer_hook()
{
- while [ $# -gt 0 ]
- do
- if [ "$1" == "-t" ]
- then
- true
- elif [ "$(whoami)" == "root" ] && [ "$1" == "-wb" ]
- then
- echo "----------------------- Last Backups Begin -------------------------"
- echo
- lastBackups
- echo
- echo "------------------------ Last Backups End --------------------------"
- echo
- else
- echo "Unknown option: '$1'"
- fi
- shift
- done
+ if [ "$(whoami)" == "root" ] && [ "$1" == "last-backups" ]
+ then
+ echo "----------------------- Last Backups Begin -------------------------"
+ echo
+ lastBackups
+ echo
+ echo "------------------------ Last Backups End --------------------------"
+ echo
+ else
+ echo "Unknown footer-hook: '$1'"
+ fi
}