Re: [Exim] Regex problem

Pàgina inicial
Delete this message
Reply to this message
Autor: Kevin P. Fleming
Data:  
A: exim-users
Assumpte: 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}}