Re: SA-Exim run condition problems...

"Richard.Hall" <[email protected]>
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.