You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by John Rudd <jr...@ucsc.edu> on 2007/12/05 19:43:46 UTC

Turning off rules


In the past, turning off a rule was supposed to be as simple as setting 
its score to zero.  Is that no longer the case?  I set a rule to zero, 
and it's still showing up in my logs (but it looks like the value is 
correctly being recorded as zero, so it's not affecting my scores; I'm 
just concerned that it might be affecting performance, even if slightly).

What's the current proper way to disable a rule?

(the rule in question is BASE64_LENGTH_79_INF ; in my local.cf I gave it 
a score of 0 but not 0.00)


Re: Turning off rules

Posted by Matthias Haegele <mh...@linuxrocks.dyndns.org>.
John Rudd schrieb:
> 
> 
> In the past, turning off a rule was supposed to be as simple as setting 
> its score to zero.  Is that no longer the case?  I set a rule to zero, 
> and it's still showing up in my logs (but it looks like the value is 
> correctly being recorded as zero, so it's not affecting my scores; I'm 
> just concerned that it might be affecting performance, even if slightly).
> 
> What's the current proper way to disable a rule?
> 
> (the rule in question is BASE64_LENGTH_79_INF ; in my local.cf I gave it 
> a score of 0 but not 0.00)


http://svn.apache.org/repos/asf/spamassassin/branches/3.2/README

Disabled code
-------------
To turn on tests disabled in 50_scores.cf, simply assign them a non-zero
score

Seems it didnt change.

http://svn.apache.org/repos/asf/spamassassin/branches/3.2/UPGRADE

btw: (I had a little difficulties to find the files i searched for a 
changelog ...)

hth

> 


-- 
Grüsse/Greetings
MH


Dont send mail to: ubecatcher@linuxrocks.dyndns.org
--


Re: Turning off rules

Posted by "Daryl C. W. O'Shea" <sp...@dostech.ca>.
John Rudd wrote:
> Theo Van Dinter wrote:
>> On Thu, Dec 06, 2007 at 09:30:34AM +0000, Justin Mason wrote:
>>> if that doesn't work, it's a bug; please report it at the Bugzilla.
>>
>> ... assuming that the local.cf file is actually being read and doesn't 
>> have an
>> error causing the parsing of the file to fail.   :)
>>
> 
> That wouldn't cause the score to actually be 0 though.  The score is 
> correctly being set to 0, but the rule is still showing up in the list 
> of triggered rules.

What version of SA are you using?  There was a bug, apparently fixed in 
3.2.3, that had eval rules being executed regardless of their score.

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5519

Daryl


Re: Turning off rules

Posted by Theo Van Dinter <fe...@apache.org>.
On Thu, Dec 06, 2007 at 09:12:44AM -0800, John Rudd wrote:
> That wouldn't cause the score to actually be 0 though.  The score is 
> correctly being set to 0, but the rule is still showing up in the list 
> of triggered rules.

Are you sure it's 0 and not 0.001 or something else small and non-zero?

-- 
Randomly Selected Tagline:
Stewie: Ah!  Damn it!  I want pancakes.  God!  You people understand
 every language except English.  Yo quiero pancakes.  Dali mua pancakes.
 Clik clik bloody clik pancakes!
                         - Family Guy, "Love Thy Trophy"

Re: Turning off rules

Posted by Theo Van Dinter <fe...@apache.org>.
On Thu, Dec 06, 2007 at 07:56:30PM +0100, Jonas Eckerman wrote:
> What happens when a zero score rule (not named __.*) is used in a 
> meta rule?

There's no difference between those two things.

-- 
Randomly Selected Tagline:
Accident, n.:
 	A condition in which presence of mind is good, but absence of
 	body is better.
 		-- Foolish Dictionary

Re: Turning off rules

Posted by Jonas Eckerman <jo...@frukt.org>.
John Rudd wrote:

> The score is 
> correctly being set to 0, but the rule is still showing up in the list 
> of triggered rules.

What happens when a zero score rule (not named __.*) is used in a 
meta rule?

Regards
/Jonas

-- 
Jonas Eckerman, FSDB & Fruktträdet
http://whatever.frukt.org/
http://www.fsdb.org/
http://www.frukt.org/


Re: Turning off rules

Posted by John Rudd <jr...@ucsc.edu>.
Theo Van Dinter wrote:
> On Thu, Dec 06, 2007 at 09:30:34AM +0000, Justin Mason wrote:
>> if that doesn't work, it's a bug; please report it at the Bugzilla.
> 
> ... assuming that the local.cf file is actually being read and doesn't have an
> error causing the parsing of the file to fail.   :)
> 

That wouldn't cause the score to actually be 0 though.  The score is 
correctly being set to 0, but the rule is still showing up in the list 
of triggered rules.


Re: Turning off rules

Posted by Theo Van Dinter <fe...@apache.org>.
On Thu, Dec 06, 2007 at 09:30:34AM +0000, Justin Mason wrote:
> if that doesn't work, it's a bug; please report it at the Bugzilla.

... assuming that the local.cf file is actually being read and doesn't have an
error causing the parsing of the file to fail.   :)

-- 
Randomly Selected Tagline:
"Now let's say I like sheep...  And now let's say I take the sheep to a 
 Christmas party..."               - Bob Golub