On Sun, Apr 20, 2003 at 12:02:13AM -0400, Paul Chvostek wrote:
I know this has been covered on the list before, but archive searches
are coming up too full to be useful.
So ... can someone "in the know" please tell me how to structure a
condition in which I want to score the existence of variable content
in the body of the message? Is it:
* 1^1 $ B ?? ${FOO}
or
* $ 1^1 B ?? ${FOO}
Paul,
Rule 1: I usually stick my '$' as far right as I can: I know it
probably make zero difference, but it makes me feel good to pass as
little to an interpolater as possible.
Rule 1 is almost always superceeded by Rule 2: readability. If I have
a long list of conditions and most of them have to have some shell
interpolation, I'll column align all of the '$' early in the condition
(some other folks do that here too: Dallman Ross produces some of the
tidiest and readable conditions I've seen on the list):
* 1^0 $ $some conditions
* 1^0 $ $other conditions
* -10^0 $ $more conditions
Rule 3: I never put the '$' before the scoring unless my scoring is
using variables that need to be interpolated:
* $ ${FOO}^0 conditions
* $ ${BAR}^1 other conditions
HTH,
Scott
--
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail