Re: [Exim] More condition help

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: Steve Drees
CC: Exim-Users@Exim. Org
Onderwerp: Re: [Exim] More condition help
On Mon, 20 May 2002, Steve Drees wrote:

> This condition always returns false.
>
>   condition = ${if and\
>                      {\
>                        {match {$h_subject:}{spamcop} }\
>                        {eq { ${lookup {$local_part} lsearch

                              ^
                              ^

> {/etc/exim/spamcop} {$value}{no} } }{yes} } \

                                    ^
                                    ^

>                      }\
>                      {yes}{no} \
>                }


The marked spaces are significant. Do you really want them? I imagine
they are your problem.

> This condition always returns true.
>
>   condition = ${if and\
>                      {\
>                        {match {$h_subject:}{spamcop} }\
>                        {eq { ${lookup {$local_part} lsearch
> {/etc/exim/spamcop} {$value}{no} } }{yes} } \
>                      }\
>                      {yes}{no} \
>                }{yes}{no}


That will never return one of the strings "", "0", or "false", because
of the terminating "{yes}{no}" on the end.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.