procmail
[Top] [All Lists]

Re: MATCH with OR

2001-10-25 11:29:11
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?

Yes, I am *sure* about it.

Again, it is easily confirmed by trying it.  Put it in a condition, send
a suitable mail, and look what happens.

The \/ splits the regex into two parts and the two parts are treated
differently.  Any further than that and I am also theorising, since I
can't pretend to know the code in regexp.c.

Cheers,
Martin
-- 
Martin McCarthy                 /</                  PGP key available
    `Procmail Companion'        \>\  http://www.ancient-scotland.co.uk
     Addison Wesley             /</    http://www.ehabitat.demon.co.uk
_______________________________________________
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>