chiark / gitweb /
inject: Insert correct Lines header.
[newsgate] / bin / post
... / ...
CommitLineData
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
10case "$SENDER" in $4) ;; *) bad "incorrect sender $SENDER" ;; esac
11exec bin/inject mail.$2