Re: [exim] expansion string logic

Top Page
Delete this message
Reply to this message
Author: Stephen Gran
Date:  
To: exim-users
Subject: Re: [exim] expansion string logic
On Wed, Dec 05, 2007 at 01:54:25PM +0000, Drav Sloan said:
> Hi peeps,
>
>    I've been banging my head against a wall and I cannot see what
> I've got wrong. Can anyone spot anything wrong with...

>
> ./bin/exim -d -be '${if and { \
>    { isip{151.115.203.35}{true}{false} }\
>    { !eq{151.115.203.35}{127.0.0.9} }\
>    }\
> }'


The {true}{false} is implicit, so remove them. Otherwise, you're pretty close.
Try:
${if and { { isip{151.115.203.35} } { !eq{151.115.203.35}{127.0.0.9} } } }

HTH,
--
--------------------------------------------------------------------------
|  Stephen Gran                  | The full impact of parenthood doesn't   |
|  steve@???             | hit you until you multiply the number   |
|  http://www.lobefin.net/~steve | of your kids by thirty-two teeth.       |

--------------------------------------------------------------------------