procmail
[Top] [All Lists]

Re: Detect Word II

1998-07-28 03:34:34
On Tue, 28 Jul 1998 11:00:28 +0200, VIGO EMG 98
<sfemg98(_at_)galeno(_dot_)unicies(_dot_)cesga(_dot_)es> wrote:
Can I 'and' and 'or' actions in the action line??

I don't know what you mean by "or"ing actions. If you're piping to a
shell script, you can use the shell's built-in || operator. Otherwise,
you're usually forced to use several recipes, perhaps in a block:

To AND:

    :0
    * conditions ...
    {
        :0c
        action1

        :0
        action2
    }

or even

    :0
    * conditions ...
    {
        :0
        action1

        :0a # or :0A
        action2
    }

To OR (i.e. do the other part if the first one fails):

    :0
    * conditions ...
    {
        :0
        action1

        :0e
        action2
    }

Hope this helps,

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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