You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Robert - elists <li...@abbacomm.net> on 2008/05/09 18:42:45 UTC

fractional scores and syntax

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

 - rh


Re: fractional scores and syntax

Posted by Loren Wilton <lw...@earthlink.net>.
> 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


RE: fractional scores and syntax

Posted by Robert - elists <li...@abbacomm.net>.
> 
> 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

Ohhhhhhhhhhhhhhh, duhsky!

thank you!

Grasshopper is grateful!

 - rh


Re: fractional scores and syntax

Posted by D Hill <d....@yournetplus.com>.
On Fri, 9 May 2008 at 09:42 -0700, lists07@abbacomm.net 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