SA Bugzilla – Bug 2400
fix bayes thresholds in Conf.pm
Last modified: 2003-09-03 02:34:21 UTC
When spamd or spamassassin start up, the value of bayes_auto_learn_threshold_nonspam is set in Conf.pm to -2.0. During the $self->init call in compile_now, this value gets changed to the value contained in share/spamassassin/10_misc.cf [SourceForge's CVS seems not to be working so I can't double check that this issue is still in current-CVS, but this discrepancy is contained in the bleeding edge files available on the SA download page].
Took me a while to get the point ;-) I guess the value in 10_misc.cf is bogus; I dunno that logic but a positive value sounds weird to me. Hmmm... was that value introcued after 2.5x? If yes, we should maybe rename it to bayes_auto_learn_threshold_ham to be consistent (or rename it officially but internally keep the old one, too)...
forgot to set the milestone
Subject: Re: [SAdev] wrong value for bayes_auto_learn_threshold_nonspam in 10_misc.cf > Took me a while to get the point ;-) I guess the value in 10_misc.cf is bogus; > I dunno that logic but a positive value sounds weird to me. > > Hmmm... was that value introcued after 2.5x? If yes, we should maybe rename it > to bayes_auto_learn_threshold_ham to be consistent (or rename it officially > but internally keep the old one, too)... No, the value in 10_misc is right for 2.60. The value in Conf.pm is outdated, but is immediately overridden by 10_misc anyway ;) --j.
Created attachment 1307 [details] fix
*** Bug 2391 has been marked as a duplicate of this bug. ***
change summary
Just checking :) My bug 2391 that was marked as a duplicate was mainly refering to a documentation error rather than a code error, does this fix address the generation of the man page as well ? (I'm not 100% sure as Conf.pm looks like a combination of documentation and code to me :)
+1 this was my bad, sorry about that. :(
+1. we should at some point add some doco to the build procedure so we don't miss that kind of thing in future (ie. "doublecheck defaults in 10_misc.cf match up with Conf.pm")
committed.