X-Git-Url: https://git.hcoop.net/hcoop/zz_old/config/exim4-hopper.git/blobdiff_plain/69878951749e135ac56f0965557ad9df6a0dc522..37ed4ee0c3ab2595fab2dfef840895875f75efc1:/deliver-once diff --git a/deliver-once b/deliver-once new file mode 100755 index 0000000..3d81745 --- /dev/null +++ b/deliver-once @@ -0,0 +1,16 @@ +#/bin/sh +# +# Cause a single email message from stdin to be delivered, after +# pausing one second to allow the mail daemon to cope. +# +# Usage: deliver-once USER +# +# USER is the person to deliver this email message to. + +if test -n "$2" || test -z "$1"; then + echo Incorrect number of arguments + exit 1 +fi + +sleep 1 +exim4 -bm $1