Documentation/%.txt : Documentation/%.pod
$(pod2text) $< $@+ && mv $@+ $@
-txt2pre = ./Documentation/txt2pre < $< > $@+ && touch -r $< $@+ && mv $@+ $@
+txt2pre = ./Documentation/txt2pre <$< >$@+ && touch -r $< $@+ && mv $@+ $@
txt := INSTALL README COPYING TODO
dtxt := design_notes.txt design_www.txt dc-dlvr-spam-flow.txt
dtxt := $(addprefix Documentation/, $(dtxt)) $(mantxt)
gz_docs := $(addsuffix .gz, $(docs) $(docs_html))
rsync_docs := $(gz_docs) $(docs) $(txt) $(docs_html)
%.gz: %
- gzip -9 --rsyncable < $< > $@+
+ gzip -9 --rsyncable <$< >$@+
touch -r $< $@+
mv $@+ $@
=head1 SYNOPSIS
-B<public-inbox-mda> E<lt> message
+B<public-inbox-mda> E<lt>MESSAGE
=head1 DESCRIPTION
set -e
case $err in
-1) $DELIVER -m INBOX.spam < $TMPMSG ;;
+1) $DELIVER -m INBOX.spam <$TMPMSG ;;
*)
# users may override normal delivery and have it go elsewhere
if test -r ~/.dc-dlvr.rc
then
. ~/.dc-dlvr.rc
else
- $DELIVER -m INBOX < $TMPMSG
+ $DELIVER -m INBOX <$TMPMSG
fi
;;
esac
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
case $1 in
*[/.]spam/cur/*) # non-new messages in spam get trained
- $DO_SENDMAIL $PI_USER+pispam < $1
- exec $DO_SENDMAIL $USER+trainspam < $1
+ $DO_SENDMAIL $PI_USER+pispam <$1
+ exec $DO_SENDMAIL $USER+trainspam <$1
;;
*:2,*S*) # otherwise, seen messages only
case $1 in
*:2,*T*) exit 0 ;; # ignore trashed messages
esac
- $DO_SENDMAIL $PI_USER+piham < $1
- exec $DO_SENDMAIL $USER+trainham < $1
+ $DO_SENDMAIL $PI_USER+piham <$1
+ exec $DO_SENDMAIL $USER+trainham <$1
;;
esac