procmail
[Top] [All Lists]

Re: Why did this match?

2006-12-08 00:24:30
Stephen Allen schreef:

         * ^X-Original-To:["$WS"]*\/.*

There is no interpolation requested, so the character class is
equivalent to [WS"$]. And since it is followed by a non-greedy *, it
will just match nothing. Effectively it is the same as

          * ^X-Original-To:\/.*


That is why the setting of $MATCH reports

procmail: Matched " me(_at_)mydomain(_dot_)tld"

with the leading space.


See http://pm-doc.sourceforge.net/pm-tips-body.html (6.13).


What you need is:

          *$ ^X-Original-To:.*\/[^$WS].*


First condition down.:)

-- 
Groet, 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

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