Commit | Line | Data |
---|---|---|
a682e5d7 MW |
1 | #! /bin/sh |
2 | ||
3 | set -e | |
4 | . defs | |
5 | ||
6 | [ $# = 1 ] || fail "usage: $0 TAG" | |
7 | tag=$1 | |
8 | entry=`cdb -q groups.cdb "t:$tag"` || bad "unknown tag $tag" | |
9 | set -- $entry | |
4aef1ddb | 10 | case "$SENDER" in $4) ;; *) bad "incorrect sender $SENDER" ;; esac |
9eacde01 | 11 | exec bin/inject -a newsgate@distorted.org.uk mail.$2 |