From: Eric Wong Date: Tue, 14 Jul 2015 21:09:50 +0000 (+0000) Subject: scripts/dc-dlvr.pre: ensure stderr gets back to the MTA X-Git-Tag: v1.0.0~1076 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=d011e18253f6c5b9876ee770d58b0f46e781bd06 scripts/dc-dlvr.pre: ensure stderr gets back to the MTA We want to be able to reject errors back to the MTA. --- diff --git a/scripts/dc-dlvr.pre b/scripts/dc-dlvr.pre index 9183a96e..c10e80c7 100644 --- a/scripts/dc-dlvr.pre +++ b/scripts/dc-dlvr.pre @@ -3,7 +3,6 @@ # sourced by /etc/dc-dlvr in ~$PI_USER/.dc-dlvr.rc, this just exits, # aborting /etc/dc-dlvr export PATH=/usr/local/bin:/usr/bin:/bin -exec 2>> ~/log/dc-dlvr.pre.err trap 'err=$?; set +e; test $err -eq 0 || rm -f $TMPMSG; exit $err' EXIT case $1,$CLIENT_ADDRESS in pispam,) exec public-inbox-learn spam < $TMPMSG ;;