procmail
[Top] [All Lists]

Re: MATCH with OR

2001-10-25 10:50:56

Hiya.

On Thu, Oct 25, 2001 at 12:47:25PM +0100, Martin McCarthy wrote:

Yes.  Easily confirmed by trying it.  The verbose log will show you how
it disposes of the whitespace at the start of the line and how it joins
the split condition lines.

I see the man page commentary about the whitespace, but are you *sure*
about where that condition is being split?

Is there a defined "order of operations" for procmail conditions?  It
would seem to me that "()\/one|two|three" might save "one" to MATCH, but
not "two" or "three", but "()\/(one|two|three)" would populate MATCH for
all three.  Is the \/ parsed before the |?  Does it matter?

It's partially implied by:

       \    To quote any of the above at the start of the line.

Perhaps it's made clearer in some of the FAQs.  I certainly read it
somewhere.

Perhaps you're reading a different version of the man page.  :)  That
line above refers to "the above" characters, which include [!$?<>], with
no mention of the MATCH marker.

I think mention of the need to escape the match marker at the beginning
of the condition should be mentioned where \/ is described on the man
page right above EXAMPLES.  Something as simple as "If this token is at
the beginning of a condition, it must be prepended with a backslash."

Philip?  :)

Hope that helps,

Thanks again.

-- 
  Paul Chvostek                                             
<paul(_at_)it(_dot_)ca>
  Operations / Development / Abuse / Whatever       vox: +1 416 598-0000
  IT Canada                                            http://www.it.ca/

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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