Re: [exim] failed to expand condition

Top Page
Delete this message
Reply to this message
Author: Nathan Ollerenshaw
Date:  
To: Philip Hazel
CC: exim-users, Valentin S. Ryabinin
Subject: Re: [exim] failed to expand condition
On Aug 26, 2004, at 5:47 PM, Philip Hazel wrote:

> On Thu, 26 Aug 2004, Valentin S. Ryabinin wrote:
>
>> condition = "${if and {\
>> {!eq {${mask:$sender_host_address/24}}{192.168.0.0/24}}\
>> {<{$message_size}{128k}}}{1}{0}}"
>
> That should yield 1 if the sender host address is NOT in 192.168.0.0/24
> and the message size is < 128K.


Hmm. In his mail, Valentin said:

> failed to expand condition "${if and {{!eq
> {${mask:$sender_host_address/24}}{192.168.0.0/
> 24}}{<{$message_size}{128k}}}{1}{0}}" for bogofilter_router router:
> "/24" is not an IP address


Is there any case where $sender_host_address could be blank? it looks
like there is, which is making ${mask:$sender_host_address/24} evaluate
to just "/24".

Nathan.

--
Nathan Ollerenshaw - UNIX Systems Engineer
ValueCommerce - http://www.valuecommerce.ne.jp/

"If we don't change direction soon, we'll end up where we're
going." - Professor Irwin Corey