procmail
[Top] [All Lists]

Newbie needs help with modified Vacation example

2004-02-06 23:16:29
Hi Procmail,



  I have this recipe, basicly a hash of the Vacation example given in
  procmailex(5)

SHELL=/bin/sh
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/blockshite.txt \
                  ) | $SENDMAIL -oi -t
  



Now this is fine, it works, but what I would like to do is to dump any
messages that hit this rule into /dev/null. I have tried to put
/dev/null/ at the end of the recipe, but the log file just says it has
been skipped. How can I modify the above to dump the mail?

-- 

Best regards,
 Michael (mike(_at_)thompsonmike(_dot_)co(_dot_)uk)
   
Mohammed Saeed al-Sahaf: 
"They're coming to surrender or be burned in their tanks."

http://www.thompsonmike.co.uk/
PGP KeyID := 0xA9547E32

'To see a world in a grain of sand
And heaven in a wild flower
To hold infinity in the palm of your hand
And eternity in an hour'

Using TheBat! Version 2.02.3 CE
Running On Windows XP (2600, Service Pack 1)
Sent From OneAndOne


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>