diff options
Diffstat (limited to 'sendmailadvanced/sendmailadvanced.conf')
-rw-r--r-- | sendmailadvanced/sendmailadvanced.conf | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sendmailadvanced/sendmailadvanced.conf b/sendmailadvanced/sendmailadvanced.conf new file mode 100644 index 00000000..7b37bfcd --- /dev/null +++ b/sendmailadvanced/sendmailadvanced.conf @@ -0,0 +1,38 @@ +#!/bin/bash + +# configuration for sendmailadvanced + +# default recipient to encrypt to +gpg_recipient="me@example.com" + +# stamp value +hashcash_bits=22 + +# things to put into head of (body of) email +body_header_hook() +{ + true +} + +# 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 +} |