chiark / gitweb /
mail: Send mail with the correct envelope sender.
[newsgate] / defs
... / ...
CommitLineData
1## -*-sh-*-
2##
3## Shell definitions for newsgate
4
5NEWS=/usr/lib/news
6QMAIL=/var/qmail
7PATH=$NEWS/bin:$QMAIL/bin:$HOME/bin:$PATH
8export PATH
9
10bad () { echo >&2 "newsgate: fatal: $*"; exit 100; }
11fail () { echo >&2 "newsgate: $*"; exit 111; }
12
13control () {
14 if [ -r $QMAIL/control/$1 ]; then
15 cat $QMAIL/control/$1
16 elif [ "${2+yes}" ]; then
17 echo "$2"
18 else
19 bad "control $1 not found"
20 fi
21}
22
23me=$(control me)