Re: [Exim] Regex problem

Top Page
Delete this message
Reply to this message
Author: Kevin P. Fleming
Date:  
To: exim-users
Subject: 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}}