procmail
[Top] [All Lists]

Re: Multiline conditions

1997-05-28 09:26:00
On Wed, 28 May 1997 15:19:18 +0000 (GMT),
"Matthew G. Saroff" <msaroff(_at_)pca(_dot_)net> wrote:
     I am in the process of setting up a bounce routine on the AGIS 
netblock, and it's long enough to be a multi line condition.

Add backslashes where lines are continued. You are allowed to indent
the following line but you are not allowed to leave off the backslash
(except in a quoted string). 

    :0c
    * ^Received:.*\[\
            (204\.(130\.243|137\.(128|13[4-9]|1[4-9][0-9]|\
             2[01][0-9]|22[0-3])\.| etc etc
   :                            ^^

BTW, I believe moving the trailing period outside the parens will buy
you a teeny bit of efficiency (and reduce redundancy in the regexp
itself). 

Hope this helps,

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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