[SA-exim] SA-Exim run condition problems...

Richard.Hall Richard.Hall at ingenta.com
Wed Feb 2 14:00:48 PST 2005


Lars,

On Wed, 2 Feb 2005, Lars Schimmer wrote:

[...]
> Ok, One error found: I had to replace or with and :-)
> But the mask: operation doesn't work.
> This run condition works:
> SAEximRunCond: ${if and {{def:sender_host_address} {!eq
> {$sender_host_address}{1.1.1.34}} {!eq {$h_X-SA-Do-Not-Run:}{Yes}} } {1}{0}}
>
> if I sent from 1.1.1.34, but this one:
>
> SAEximRunCond: ${if and{{def:sender_host_address}
> {!eq{mask:$sender_host_address/24}
> {1.1.1.0/24}}{!eq{$sender_host_address}{127.0.0.1}}}{1}{0}}
>
> doesn't.
>
> Why?

I may be way off here (these things confuse me to hell!), but shouldn't

  {!eq{mask:$sender_host_address/24}{1.1.1.0/24}}

be

  {!eq{${mask:$sender_host_address/24}}{1.1.1.0/24}}

? Otherwise you are comparing with the literal string "m a s k ...

HTH,
 Richard





More information about the SA-Exim mailing list