summaryrefslogtreecommitdiff
path: root/digest-mailer.in
blob: 4e884940838b2345b36de460daaf375a22dc0508 (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
#!/bin/bash

verwendung() {
  >&2 echo 'digest-mailer collects emails into digests before sending them.'
  >&2 echo ''
  >&2 echo 'Usage: digest-mailer [OPTIONS]'
  >&2 echo \
'#HELPTEXT#    #'
  exit 1
}

if [ "x$1" = 'x--help' ]; then
  verwendung
fi

if [ "x$1" = 'x--version' ]; then
  echo '#VERSION#'
  exit
fi

if [ $# -ne 0 ]; then
  verwendung
fi

min_delay=3600
max_delay=3600
agressivity=0
mail_cmd='sendmail -t'

if [ -r #ETCDIR#/digest-mailer.conf ]
then
  . #ETCDIR#/digest-mailer.conf
fi

#TODO