1 # [should have a bin/sh line and EZPATH added above by make]
3 # script to accept files in DIR/mod/pending. Use as:
4 # ezmlm-accept DIR file1 [file2 ...]
5 # where ``DIR'' is the list directory and ``file1'' is a file to be
6 # accepted. ``ezmlm-accept DIR DIR/mod/pending/*'' will accept all
7 # pending files. Files that are successfully sent to the list are
8 # deled. See man page for details.
10 EZSEND
="${EZPATH}/ezmlm-send"
11 FATAL
='ezmlm-accept: fatal:'
12 if [ ! -x
"$EZSEND" ]; then
13 echo "$FATAL please edit script to the correct ezmlm-send path"
19 if [ -z
"$1" ] ||
[ -z
"$2" ]; then
20 echo "$FATAL usage: ezmlm-accept DIR file1 [file2 ...]"
26 $EZSEND $DIR < "$2" && rm -f
"$2"