diff options
author | Erich Eckner <git@eckner.net> | 2019-10-10 09:53:38 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-10 09:53:38 +0200 |
commit | ad12c709f026e480d9cd3cc6662c2d826d58f57a (patch) | |
tree | b0d78449c5d8b2bc4ae8385fe607e9a60479964e /sendmailadvanced.conf | |
parent | aae2b4b2711e6343e3e2f52ed0a7e595ce4ffb1d (diff) | |
download | sendmailadvanced-ad12c709f026e480d9cd3cc6662c2d826d58f57a.tar.xz |
put hooks into /etc/sendmailadvances.hooks/
Diffstat (limited to 'sendmailadvanced.conf')
-rwxr-xr-x | sendmailadvanced.conf | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sendmailadvanced.conf b/sendmailadvanced.conf index 831c0e8..08b1a25 100755 --- a/sendmailadvanced.conf +++ b/sendmailadvanced.conf @@ -9,43 +9,3 @@ gpg_recipients=( # stamp value hashcash_bits=22 - -# things to put into head of (body of) email -body_header_hook() -{ - if [ "$(whoami)" == 'root' ]; then - [ "$1" == 'last-backups' ] && return 0 - [ "$1" == 'paccheck' ] && return 0 - fi - echo "Unkonwn header-hook: '$1'" -} - -# things to put into foot of email -body_footer_hook() -{ - if [ "$(whoami)" == 'root' ]; then - case "$1" in - 'last-backups') - echo '----------------------- Last Backups Begin -------------------------' - echo - last-backups - echo - echo '------------------------ Last Backups End --------------------------' - echo - return 0 - ;; - 'paccheck') - if command -v paccheck >/dev/null; then - echo '----------------------- Pacman Check Begin -------------------------' - echo - paccheck --list-broken --sha256sum - echo - echo '------------------------ Pacman Check End --------------------------' - echo - return 0 - fi - ;; - esac - fi - echo "Unknown footer-hook: '$1'" -} |