SA Bugzilla – Bug 5142
[review] Decimal numbers in Meta Test Math triggers undefined dependency
Last modified: 2007-02-05 09:32:17 UTC
A meta test with math such as: meta KAM_TIME ((__KAM_TIME1 + ((__KAM_TIME2 + __KAM_TIME3 + __KAM_TIME4 + __KAM_TIME5) / 2) + (__KAM_TIME6 * 1.5)) >= 2) gives this error: [1177] info: rules: meta test KAM_TIME has undefined dependency '1.5'
A work around is to use something like __KAM_TIME6 * (3/2)
Ok, I have a patch which will be up shortly. Interesting while writing this, I found another bug where rules were required to be at least 2 chars long. oops.
Created attachment 3762 [details] suggested patch
Created attachment 3763 [details] new suggested patch same as before, but fixes small typo
+1
I can't vote but the patch looks good to me.
Sending lib/Mail/SpamAssassin/Conf/Parser.pm Sending lib/Mail/SpamAssassin/Constants.pm Sending lib/Mail/SpamAssassin/PerMsgStatus.pm Transmitting file data ... Committed revision 503786.