If I have the following Procmail recipe, where do i put the /dev/null statement to forward to /dev/null?
I am sorry for a basic question, but Procmail is'nt that easy to understand, and the recipe below is a hash of the Vacation example, but it does eactly what I need it to, bar deleting the message!
I havbe tried to put the /dev/null statement after the sendmail, but the log file justs says "skipped".
Any help appreciated!
Code:
SHELL=/bin/sh # for other shells, this might need adjustment
LOGFILE=pmlog
LOG="
"
VERBOSE=yes
KAKMATCH=`cat $HOME/kaksenders.txt`
:0 Whc: vacation.lock
* $^FROM.*${KAKMATCH}
* !^FROM_DAEMON
* !^X-Loop: poofilter
| formail -rD 8192 vacation.cache
:0 ehc # if the name was not in the cache
| (formail -rA"Precedence: junk" \
-A"X-Loop: poofilter" ; \
echo ".."; \
echo ".."; \
echo "-- "; cat $HOME/block.txt \
) | $SENDMAIL -oi -t