Re: [Exim] mask vs regex match in filter and other questions…

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: Jeffrey Goldberg
CC: exim-users
Assunto: Re: [Exim] mask vs regex match in filter and other questions from the Bedfordshire marshes.
On Thu, 25 May 2000, Jeffrey Goldberg wrote:

> In a system filter where I am trying to test for messages for a whether it
> originated in my domain 138.250.0.0/16, I have
>
>  if (("${if def:sender_host_address {yes}{no}}" is yes) and
>      ${mask:$sender_host_address/16} is "138.250.0.0/16") then 

>
> Would there be a performance gain for
>
> if ($sender_host_address begins 138.250.) then


That should be faster. Whether significantly, I don't know.

> Also what happens if $sender_host_address is not defined.


It's always defined. It's just empty for local messages. So it would
never match.

> Finally, how do I test a system filter for things with
> $sender_host_address ? I tried playing with a combination of -bF and -bh
> but -bh always got me talking SMTP.


-oMa

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.