]> Sergey Matveev's repositories - public-inbox.git/blob - scripts/dc-dlvr.pre
dsdeflate: shorten scope of initial buffer
[public-inbox.git] / scripts / dc-dlvr.pre
1 # Copyright (C) 2014, Eric Wong <e@80x24.org>
2 # License: AGPL-3.0+ <http://www.gnu.org/licenses/agpl-3.0.txt>
3 # sourced by /etc/dc-dlvr in ~$PI_USER/.dc-dlvr.rc, this just exits,
4 # aborting /etc/dc-dlvr
5 export PATH=/usr/local/bin:/usr/bin:/bin
6 trap 'err=$?; set +e; test $err -eq 0 || rm -f $TMPMSG; exit $err' EXIT
7 case $1,$CLIENT_ADDRESS in
8 pispam,) exec public-inbox-learn spam <$TMPMSG ;;
9 piham,) exec public-inbox-learn ham <$TMPMSG ;;
10 esac
11 exec public-inbox-mda <$TMPMSG