Re: [Exim] Combining conditions

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Odhiambo G. Washington
Data:  
Para: exim-users
Asunto: Re: [Exim] Combining conditions
--
* Imre Magyar <magyar.imre@???> [20040104 19:17]: wrote:
> Hello,
>
> how should I combine these conditions into one:
>
> ${lookup {${local_part}} lsearch{/etc/mail/$domain_data/users-spamcheck} {yes}{no}}
>
> and
>
> ${if !def:h_X-Spam-Checker-Version: {true }}
>
> I would like check for spam only addresses defined in the file above.



Something like (untested):

${if and { \
         {!def:h_X-Spam-Checker-Version:} \
         {${lookup {${local_part} lsearch{/etc/mail/$domain_data/users-spamcheck}}} \
         } \
         {yes}{no}}



Use exim -be to test it




        cheers
       - wash
+----------------------------------+-----------------------------------------+
Odhiambo Washington                     . WANANCHI ONLINE LTD (Nairobi, KE)  |
<wash at wananchi dot com>              . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223                 . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121                 . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"
                         --from a /. post
--
[ Content of type application/pgp-signature deleted ]
--