public-inbox.git  about / heads / tags
an "archives first" approach to mailing lists
blob 7f7c414ea32c81e269ef6e7e0c266865dc9593f3 477 bytes (raw)
$ git show HEAD:scripts/dc-dlvr.pre	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
# Copyright (C) 2014, Eric Wong <e@80x24.org>
# License: AGPL-3.0+ <http://www.gnu.org/licenses/agpl-3.0.txt>
# 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 ;;
esac
exec public-inbox-mda <$TMPMSG

git clone https://public-inbox.org/public-inbox.git
git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/public-inbox.git