#! /bin/sh set -e . defs [ $# = 1 ] || fail "usage: $0 TAG" tag=$1 entry=`cdb -q groups.cdb "t:$tag"` || bad "unknown tag $tag" set -- $entry case "$SENDER" in $4) ;; *) bad "incorrect sender $SENDER" ;; esac exec bin/inject -a newsgate@distorted.org.uk mail.$2