Bayes Rebuild not happening
Eric Dantan Rzewnicki
rzewnickie at RFA.ORG
Fri Mar 26 17:24:36 GMT 2004
Ok. I made the change to SA.pm (and kept a copy of the original as
SA.pm.old, of course) and set:
Rebuild Bayes Every = 900
In MailScanner.conf hoping to test it sooner rather than waiting for it
to run overnight. But it's been over half an hour with no Bayes
messages in the logs. Is there some minimum time constraint for that
setting?
Thanks Julian,
Eric Rz.
On Fri, Mar 26, 2004 at 05:07:40PM +0000, Julian Field wrote:
> Correct. That looks okay.
>
> At 16:17 26/03/2004, you wrote:
> >Nevermind. I found it in the latest beta release. So ... lines 127-145
> >should look like this?:
> >
> > # Do the actual expiry run
> > MailScanner::Log::InfoLog('SpamAssassin Bayes database rebuild
> >starting');
> > eval {
> > $MailScanner::SA::SAspamtest->init(1);
> > $MailScanner::SA::SAspamtest->init_learner({
> > force_expire => 1,
> > learn_to_journal => 0,
> > wait_for_lock => 1,
> > caller_will_untie => 1});
> > $MailScanner::SA::SAspamtest->rebuild_learner_caches({
> > verbose => 0,
> > showdots => 0});
> > $MailScanner::SA::SAspamtest->finish_learner();
> > };
> > MailScanner::Log::WarnLog("SpamAssassin Bayes database rebuild " .
> > "failed with error: %s", $@)
> > if $@;
More information about the MailScanner
mailing list