Re: [Exim] Regex problem

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Kevin P. Fleming
Fecha:  
A: exim-users
Asunto: Re: [Exim] Regex problem
William Thompson wrote:
> Use ${mask:$sender_host_address/24} instead of $sender_host_address
>
> Something like:
> ${if and { {!eq {${mask:$sender_host_address/24}} {a.b.c.d/24}} \
>            {!eq {${mask:$sender_host_address/24}} {w.x.y.z/24}} \
>            {!eq {${mask:$sender_host_address/24}} {1.2.3.4/24}} \
>          }{1}{0}}

>
>


Or, more clearly:

${if or  { {eq {${mask:$sender_host_address/24}} {a.b.c.d/24}} \
            {eq {${mask:$sender_host_address/24}} {w.x.y.z/24}} \
            {eq {${mask:$sender_host_address/24}} {1.2.3.4/24}} \
          }{0}{1}}