Re: fractional scores and syntax

2008-05-09 Thread D Hill

On Fri, 9 May 2008 at 09:42 -0700, [EMAIL PROTECTED] confabulated:


I am not sure how to ask this

We have a test URIBL

#
#
#
###
#
urirhssub URIBL_TEST uri.test.local.A   2
body  URIBL_TEST eval:check_uridnsbl('URIBL_TEST')
describe URIBL_TEST Contains an URL listed in the TEST blacklist
tflags  URIBL_TEST net
#reuse  URIBL_TEST

#
score URIBL_TEST 0 1 0 1

this works...  :-)

what do I need to look or search for regarding syntax so that I can change
the score from what you see above to have lower fractional score like

score URIBL_TEST 0 .1 0 .1

and get a good output from spamassassin --lint

thanks in advance


If you are referring to this:

[42778] warn: config: SpamAssassin failed to parse line, test_rule .1 is
not valid for score, skipping: score test_rule .1
[42778] warn: lint: 1 issues detected, please rerun with debug enabled for 
more information


You have to prefix all decimal score values with zero(0). So in your case:

  score URIBL_TEST 0 0.1 0 0.1


RE: fractional scores and syntax

2008-05-09 Thread Robert - elists
 
 If you are referring to this:
 
 [42778] warn: config: SpamAssassin failed to parse line, test_rule .1 is
 not valid for score, skipping: score test_rule .1
 [42778] warn: lint: 1 issues detected, please rerun with debug enabled for
 more information
 
 You have to prefix all decimal score values with zero(0). So in your case:
 
score URIBL_TEST 0 0.1 0 0.1

Ohhh, duhsky!

thank you!

Grasshopper is grateful!

 - rh



Re: fractional scores and syntax

2008-05-09 Thread Loren Wilton

score URIBL_TEST 0 1 0 1

this works...  :-)

score URIBL_TEST 0 .1 0 .1


And the above presumably doesn't work.

As far as the SA parser is concerned, a number needs to start with a digit, 
so .1 is invalid.


score URIBL_TEST 0.0 0.1 0.0 0.1

Should work.

   Loren