chiark / gitweb /
cdb: General drive to eliminate freecdb and libfile-cdb-perl.
[newsgate] / bin / post
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
10 exec mailpost.newsgate -a $USER@`cat $QMAIL/control/me` -d mail mail.$2