I've got a .procmailrc with a couple of sections in it which generate
automatic replies, somewhat like this (but with more subject and
address regexes:
# stuff I don't even want to hear about. Bounce
:0c:
* ^Subject:.*fe*project.* | \
^To:(_dot_)*spam(_at_)s\(_dot_)patterson\(_dot_)freeuk\(_dot_)com | \
^Subject:.*VMware Newsletter.* | \
| (formail -brt ; \
echo "Returned mail: User unknown."; \
echo "Your message was sent to someone who does not have an " ; \
echo "acount at this server." ;\
) | $SENDMAIL -oi -t
/dev/null
I'd like to have the original message dropped into /dev/null without
having to duplicate all the spam matching regexes, the code above
works except for filtering messahes away to /dev/null.
Anyone know what I'm missing?
--
It's a great big universe and we're all really puny, just tiny little specks
'bout the size of Mickey Rooney -- Animaniacs
-- -- -- -- -- -- -- -- -- --
Stephen Patterson s(_dot_)patterson(_at_)SPAMOFFfreeuk(_dot_)com (Remove
SPAMOFF to reply)
http://home.freeuk.net/s.patterson/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail