Re: [Exim] dot.forward user filter

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Matthew Byng-Maddick
Date:  
À: Jim Pazarena
CC: exim-users
Sujet: 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/