On 11/10/2022 12:23, Henrik K wrote:
Should be fixed in rc4.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8060
Well, this indeed fixes this test case. But my initial problem which I
though is described in this test case is not fixed yet:(
So __SA4TA1 gets not evaluated neither in this ...
header __SA4T_NOMATCH Subject =~ /dsfasjdhfkjshfjsdklfhaskf/
meta __SA4TA1 (((! __SA4T_NOMATCH) || __SPOOFED_URL) && URIBL_SBL )
meta __SA4TA2 (__SA4TA1 * 3 ) + 1
IMO __SA4TA2 should always be 1 or more (4). But in this case if URIBL_SBL is
not hit it is undefined.
nor in this ...
I also found that modifying __SA4TA1 to
meta __SA4TA1 (((! __SA4T_NOMATCH) || __SPOOFED_URL) && __UNDEF )
fails in the same way and __SA4TA2 is always undefined.
showcase. The latter is noted in the dbg output with
dbg: rules: meta test __SA4TA1 has undefined dependency '__UNDEF'
but IMO this should not stop the meta rule from working, because it would
basically destroy the possibility to make local dependencies on mainline
rules. You would have to check for "undefined dependecy" on every sa-update
then, what makes automatic updates impossible.
And I've still cases were a simple ">" is not evaluated as well...
I have
meta __META1 (__SUBMETAX + ..... + __SUBMETAXN)
with
dbg: rules: ran meta rule __META1 ======> got hit (5)
I have
meta __META2 (__SUBMETAY + ..... + __SUBMETAYN)
with
dbg: rules: ran meta rule __META2 ======> got hit (8)
I have
meta __META_NO (__SUBMETAZ || ..... || _SUBMETAZN )
which is not hit.
And finally
meta RESULT ((! __META_NO) && __META1 > 1 && __META2 > 6)
score RESULT 3
And RESULT is not hit/evaluated.
There is something really odd going on with meta rules on SA4.
Greetings, Wolfgang
--
Wolfgang Breyha <wbre...@gmx.net> | https://www.blafasel.at/
Vienna University Computer Center | Austria