procmail
[Top] [All Lists]

Re: \/ is not the same as ()\/

1997-11-17 05:35:13
On Sun, 16 Nov 1997 21:02:41 -0600, James Waldby <j-waldby(_at_)uiuc(_dot_)edu>
wrote:
Now, one more question.  With following in .procmailrc : 
:0B
* ^^\/.*$?.*$?.*$?
{ LOG=" a |$MATCH| a " }

:0B
* ()\/.*$?.*$?.*$?
{ LOG=" b |$MATCH| b " }

:0B
* \\/.*$?.*$?.*$?
{ LOG=" c |$MATCH| c " }

Fascinatingly, this looks like a new bug in Procmail. Even with the
question marks taken out, I get the same result. (And in none of the
cases is the trailing newline included in the log message.)

the log file said
 a | L1
 L2
 L3| a  b | L1
 L2| b  c | L1
 L2| c 
which means, after \/.*$?.*$?.*$?  $MATCH was first three lines of body,
but after ()\/.*$?.*$?.*$? or \\/.*$?.*$?.*$? patterns, only first two
lines.

Time to write to Stephen with this?

/* 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/>