#!/bin/bash # configuration for sendmailadvanced # default recipient to encrypt to gpg_recipients=( "me@example.com" ) # stamp value hashcash_bits=22 # things to put into head of (body of) email body_header_hook() { [ "$(whoami)" == "root" ] && [ "$1" == "last-backups" ] && return 0 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 ;; esac fi echo "Unknown footer-hook: '$1'" }