On Tue, 2 Oct 2018, Martin Gregorie wrote:
On Mon, 2018-10-01 at 22:45 +0100, RW wrote:
It seems to be related to the use decimal numeric literals
meta __YYY 1/2
meta __XXX 0.2 * __YYY + 0.1
$ spamassassin --lint
...
... warn: config: Strange rule __XXX token: 0.2
... warn: config: Strange rule __XXX token: 1.1
Interesting. I have only one local rule with a literal '1.5' in a meta
rule body. Here's that rule:
describe MG_LOTTO Fake lotto winner
header __MG_LOT1 From =~ /lotto/i
body __MG_LOT2 /(lotto|loterie)/i
meta MG_LOTTO ( ( __MG_LOT1 + __MG_LOT2 ) > 1.5 )
score MG_LOTTO 2.0
This rule has been around and working as expected for several years.
Looks like the lint got broken, then, and needs to accept decimal
numbers...
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
550 days since the first commercial re-flight of an orbital booster (SpaceX)