You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/09/22 19:29:26 UTC

[Bug 3799] sa-learn with --dbpath tries to open ~/.spamassassin/bayes* first.

http://bugzilla.spamassassin.org/show_bug.cgi?id=3799

felicity@kluge.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|Future                      |3.0.1



------- Additional Comments From felicity@kluge.net  2004-09-22 10:29 -------
I'm not sure if this is really 3.0.1 or 3.1.0, but the scoop is this, in sa-learn, dbpath kluges the 
configured bayes_path via:

$spamtest = new Mail::SpamAssassin(
[...]
$spamtest->init(1);
[...]
  $spamtest->finish_learner();
  $spamtest->{conf}->{bayes_path} = $bayes_override_path;

so the init() tries to read the actual configured bayes db and get the learner bit setup, then we change 
the path and things are good.  However, the init() call throws the "version 2" warning (the person's 
actual bayes db), and then the path overrides and the dump can properly read the other version 3 db.

so I'm not sure how to go about fixing this, but we should look into it.  perhaps either pass in an option 
to init() to not init bayes or figure out something cleaner. :)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.