X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=scripts%2Fdc-dlvr.pre;h=7f7c414ea32c81e269ef6e7e0c266865dc9593f3;hb=d07ba9c30800225052d17ccca458afbfa05a8ff0;hp=c10e80c7b6e2b2b8ab28a6325f1fc504bf87d1e8;hpb=d011e18253f6c5b9876ee770d58b0f46e781bd06;p=public-inbox.git diff --git a/scripts/dc-dlvr.pre b/scripts/dc-dlvr.pre index c10e80c7..7f7c414e 100644 --- a/scripts/dc-dlvr.pre +++ b/scripts/dc-dlvr.pre @@ -1,11 +1,11 @@ # Copyright (C) 2014, Eric Wong -# License: AGPLv3 or later +# License: AGPL-3.0+ # 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 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 ;; -piham,) exec public-inbox-learn ham < $TMPMSG ;; +pispam,) exec public-inbox-learn spam <$TMPMSG ;; +piham,) exec public-inbox-learn ham <$TMPMSG ;; esac -exec public-inbox-mda < $TMPMSG +exec public-inbox-mda <$TMPMSG