Howdy,
Just a question. For learning a message as spam (and reporting it), it
seems like this is adequate:
$f->report_as_spam( $mail )
However, for ham, it seems like you need to do this:
$f->init_learner;
$status = $f->learn( $mail );
$f->rebuild_learner_caches;
$f->finish_learner
report_as_spam() implies that it is learnt by Bayes, but I didn't see if
the learn() stuff is happening under the hood. It also appears the
learn() returns a status object, where report returns nothing terribly
useful.
Is the code in 2.63 doing the right thing? This is for a persistant
process, so I need to make sure I get it right.
Thanks,
David.
Just a question. For learning a message as spam (and reporting it), it
seems like this is adequate:
$f->report_as_spam( $mail )
However, for ham, it seems like you need to do this:
$f->init_learner;
$status = $f->learn( $mail );
$f->rebuild_learner_caches;
$f->finish_learner
report_as_spam() implies that it is learnt by Bayes, but I didn't see if
the learn() stuff is happening under the hood. It also appears the
learn() returns a status object, where report returns nothing terribly
useful.
Is the code in 2.63 doing the right thing? This is for a persistant
process, so I need to make sure I get it right.
Thanks,
David.