procmail
[Top] [All Lists]

Re: Need help: What am I over-looking?

2005-02-07 13:11:20
Toen wij S.A. Birl kietelden, kwam er dit uit:

[  * ^From:.*(cmathew)|(horvath)  ]
If I have no inner brackets, wouldnt it be equivent to
* ^From:.*cmathew|horvath

The scope (maybe purport is a better word here?) of 
the '|' doesn't stop at non-brackets.

This is what everybody assumes that you meant:

  ^From:.*(cmathew|horvath)

It says: The matched text should start at a newline-border 
(because of the ^ anchor), then the string 'From', followed by 
a colon, then a run of 0 or more characters (any but newline), 
followed by either the string cmathew or horvath.

This can of course be expanded to 

  ^From:.*(cmathew|horvath|name-3|name-4)


The wrong form is:

  ^From:.*cmathew|horvath|name-3|name-4 

because in there, name-1 equals '^From:.*cmathew'.

-- 
Grtz, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail