Re: [exim] spam_score_int - what to do with negative values?
Jeremy Harris via Exim-users @ 2023-01-26 14:23 : > On 26/01/2023 10:31, Niels Kobschätzki via Exim-users wrote: >> with a score of -12.6 > > How was that part verified? Thanks - I shouldn’t write to mailing lists when I have a cold. I was mislead by the original mail from the user. The mail hit our mailservers twice apparently. Once it got the low score, it was then forwarded to another server, then came back and then it became a high score. And I got the mail headers of the first result. Thanks to your mail, my brain made the connection that the bounce the user got wouldn’t have any headers with spam scoring. Sorry for the noise. Niels -- ## 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/
Re: [exim] spam_score_int - what to do with negative values?
On 26/01/2023 10:31, Niels Kobschätzki via Exim-users wrote: with a score of -12.6 How was that part verified? -- Cheers, Jeremy -- ## 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/
Re: [exim] spam_score_int - what to do with negative values?
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 | 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/
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 -- ## 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/
[exim] spam_score_int - what to do with negative values?
Hi! I deny messages in an acl if they have a score of more than 8 or 12: (shortened version with less conditions, that are not relevant here probably): 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? Best, Niels -- ## 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/