Re: [Exim] dot.forward user filter

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Matthew Byng-Maddick
Dátum:  
Címzett: Jim Pazarena
CC: exim-users
Tárgy: Re: [Exim] dot.forward user filter
On Thu, Sep 13, 2001 at 01:26:32PM -0700, Jim Pazarena wrote:
> I have a line in a filter which NEVER equates true:
>
> if $h_subject: matches "pgmr update (uuencoded)"
>    then save $home/fname
>         finish
> endif

>
> HOWEVER if I change the line to:
>
> if $h_subject: contains "pgmr update (uuencoded)"
>    then save $home/fname
>         finish
> endif

>
> THEN it *does* work!
>
> I log "subject" lines in my exim log file, and the Subject that it
> logs is indeed exactly what is in my filter above.
>
> Any reason why this is failing?


Yes, the first is matching a regex, for which the '(' and ')' characters
are meta-characters, and used for grouping. The second one is a literal
match, and hence will work. The first will match "pgmr update uuencoded"
and $1 will contain "uuencoded".

MBM

-- 
Matthew Byng-Maddick         <mbm@???>           http://colondot.net/