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 ;;
11 exec public-inbox-mda <$TMPMSG