procmail
[Top] [All Lists]

Re: Defining a common set of actions ?

1997-05-22 15:17:00
Or since it sounds like you're just looking for a way to do logical
OR'ing, why not:

      :0
      * ! some test
      * ! some other test
      { }
      :0 E
      {
          :0 Whc: vacation.lock
          | (formail -r ... ) | $SENDMAIL $SENDMAILFLAGS -t

          :0
          $DEFAULT
      }

or any of the other ways of doing logical OR'ing in procmail.  For an
example from the archive, take a look at:

I've always wondered why some folks seem to prefer using the negated
tests in front of a null block, followed by an "else" block, rather than
what seems to be more obvious form of weighted scores:

    :0
    * 2^0 some test
    * 2^0 some other test
    * -1^0
    {
        # if any test succeeds
    }

The exception, of course, is if "some test" or "some other test" are
already using weighted scores.

Alan

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