On Mon, May 13, 2002 at 07:46:54PM -0400, Chris LaFrance wrote:
I'm wondering what the recipe is to have mail that either the To, From Cc
match to be routed to a folder.
The procmail custom seems to be to use scoring to OR successive
conditions. To make this non-obvious technique more readable, I use:
OR=2147483647^0 # Max score => immediate success. i.e. OR
:0: # Note: \t is a literal tab in practice:
* $ $OR ^To:[ \t]*nice_regexp
* $ $OR ^Cc:[ \t]*nice_regexp
* $ $OR ^From:[ \t]*nice_regexp
action
Looking back at it, I can't quite see why the first $ is needed, since
scoring doesn't need it, and the $OR ought be expanded without assistance.
Perhaps it works like a shell eval, causing the line to be reparsed by the
interpreter.
The manpages will clarify whether your action requires the second colon, etc.
Erik
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail