Re: [Exim] Condition to match against address list

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Brian Candler
Date:  
À: exim-users
Sujet: Re: [Exim] Condition to match against address list
On Wed, Jul 17, 2002 at 02:37:15PM +0100, Philip Hazel wrote:
> For the moment, the only possibility is "mask", as you say. If your list
> is inline and consists of IP networks, the different is only syntactic
> sugar:
>
>   ${if or
>        {
>        {eq {${mask:$sender_host_address/24}}{1.2.3.0/24}}
>        {eq {${mask:$sender_host_address/16}}{1.2.0.0/16}}
>        ...
>        }
>     ...


I hadn't realised that or{} allows more than two parameters. Not having to
nest them, this looks fine.

Thanks,

Brian.