procmail
[Top] [All Lists]

Re: Need help with filter & forward

1999-02-19 10:11:09
Unless I'm misunderstanding something here, you're _running_ this procmail
recipe at work; hence you shouldn't be forwarding mail back into 
me(_at_)work(_dot_)com
from that recipe, you should just be dealing with it. If you want to simply
forward all mail that does not match the 'advanced-java' pattern to your
@home, and save all of it (including the stuff that matched) in the normal way
at work, how about

        :0 c
        * ! ^TOadvanced-java
        ! me(_at_)home(_dot_)com

Remember, when the procmailrc "falls off the end" (which it will do for all
messages, whether they match or not, thanks to the "c" flag) it does normal
local delivery. And the "^TO" macro, when used that way, is a handy way of
matching all email addressed to a list containing the string; whether it's To,
or Cc, or whatever. And why use "| $SENDMAIL ..." rather than just "!"?

-Bennett

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