a682e5d7 MW |
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 |
4aef1ddb MW |
10 | case "$SENDER" in $4) ;; *) bad "incorrect sender $SENDER" ;; esac |
11 | exec bin/inject mail.$2 |