chiark / gitweb /
cdb: General drive to eliminate freecdb and libfile-cdb-perl.
[newsgate] / bin / post
CommitLineData
a682e5d7
MW
1#! /bin/sh
2
3set -e
4. defs
5
6[ $# = 1 ] || fail "usage: $0 TAG"
7tag=$1
8entry=`cdb -q groups.cdb "t:$tag"` || bad "unknown tag $tag"
9set -- $entry
10exec mailpost.newsgate -a $USER@`cat $QMAIL/control/me` -d mail mail.$2