procmail
[Top] [All Lists]

Re: Why does IP address *ALWAYS* match?

1997-12-06 18:50:27
At 05:08 PM, 06 December 1997, Walter Dnes <waltdnes(_at_)interlog(_dot_)com> 
wrote:
    I want to test all headers for the string "[24.92.0.".  My
program escape's the bracket and dots, and generates the condition
 * !\[24\.92\.0\.
According to the log with VERBOSE=ON, this test (do NOT match)
returns false, i.e. the pattern has matched.  I don't see a backslash
immediately preceding a digit, so the pattern should *NOT* be a
repetition count.  Any ideas?  If I get really desparate, I could

Procmail doesn't support repetition count, so it could never be
interpreted as such.  It's likely that the backslash at the beginning
of the line is not being used to quote the bracket, but instead it's
just being interpreted as the end of the condition modifiers.  Try:

  * ! ()\[24\.92\.0\.

-- 
Aaron Schrab     aaron(_at_)schrab(_dot_)com      http://www.execpc.com/~aarons/
 I'm sure that that could be indented more readably, but I'm scared of
 the awk parser.  --Larry Wall

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