diff options
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'" -} |