procmail
[Top] [All Lists]

Re: understanding (mis)filtering

2001-12-11 12:15:08
Santiago told parv,

| If you want to use the special `^TO_' regexp it has to be ^TO_, not TO
| or ^(TO_, and of course not ^(TO.

There is also the ^TO, which predates ^TO_.  Usually, if your procmail
version is recent enough to understand ^TO_, you'll want to use it.  But ^TO
is what parv needs here, because (this is the main difference between ^TO_
and ^TO) ^TO_ won't match on a string that ends in a hyphen, while ^TO will,
and that's what parv is trying to do.

However (as Santiago said), procmail won't expand either of them if you put
a parenthesis into the middle of it but instead will take each character one
at a time.  You can't factor the caret away from it without breaking it.

So what parv needs is

* ^TOdoc(_at_)freebsd\(_dot_)org|^Subject:.*cvs commit:[     ]*doc


_______________________________________________
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>