procmail
[Top] [All Lists]

procmail Internals: Testing Conditions

1997-07-16 19:22:00
    Because my ISP supplies procmail (v3.10), and I don't read C very
well, I have never loaded down the procmail source.  I do try to put my
recipes in order of anticipated hit (or possibly skipping) rate for
the sake of efficiency. However, I am wondering whether the order of
listing conditions within a single condition makes a difference.

    Suppose I have a recipe something like this:

:0
* condition1
* condition2
* condition3
{ some nesting block }

Now suppose that condition1 is the _least_ likely to be hit in this
recipe, so that procmail would wind up going to the next recipe in
turn.  If condition1 fails, which would happen more frequently than
condition2 or condition3, as soon as procmail evaluates condition1
against an incoming mail and sees that condition1 fails, does it skip
the rest of the conditions and immediately look for the next recipe? 
If so, this could make a difference in what order I put conditions
within a recipe and how I stack the various recipes themselves for 
the sake of processing efficiency.

Thanks.
Paul                             <pobart(_at_)access(_dot_)digex(_dot_)net>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key
Home Page:  http://www.access.digex.net/~pobart

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