Re: [Exim] Regex problem

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Kevin P. Fleming
Datum:  
To: exim-users
Betreff: 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}}