#! /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 exec mailpost.newsgate -a $USER@`cat $QMAIL/control/me` -d mail mail.$2