Re: [exim] spam_score_int - what to do with negative values?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Evgeniy Berdnikov
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] spam_score_int - what to do with negative values?
Hello.

On Thu, Jan 26, 2023 at 11:31:24AM +0100, Niels Kobschätzki via Exim-users wrote:
> deny message = delivery error with obfuscating details
> condition = ${if >{$spam_score_int}{120}{1}{0}}
>
> Usually this is no problem. But now I have a user who got a mail that was denied with a score of -12.6 and an error message that tells me that it got denied because of this rule.
>
> Now I wonder if spam_score_int is actually an absolute value and 12.6 and -12.6 are the same in the comparison.
>
> If this is the case, what can I do about it?


The ">" comparison operator accepts integers, argument "-12.6" should raise
an error. Negative values are valid. You can strip out dot with ${sg{..}},
for example. Maybe there are some more elegant solutions...
--
Eugene Berdnikov