On 26/01/2023 14:43, Evgeniy Berdnikov via Exim-users wrote:
>  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...

But $spam_score_int is signed as well. And the condition used by the OP
should work just fine IMVHO.

At least my local exim 4.96 does report:
# exim -be '${if >{-200}{120}{1}{0}}'
0
# exim -be '${if >{200}{120}{1}{0}}'
1

Greetings, Wolfgang
--
Wolfgang Breyha <wbre...@gmx.net> | https://www.blafasel.at/
Vienna University Computer Center | Austria

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to