summaryrefslogtreecommitdiff
path: root/sendmailadvanced.conf
blob: 7b37bfcdafabf5b49517d5713f07a30f84f992d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
}