Mailing List Archive

[Bug 3438] New: Conflicting API documentation
http://bugzilla.spamassassin.org/show_bug.cgi?id=3438

Summary: Conflicting API documentation
Product: Spamassassin
Version: unspecified
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Documentation
AssignedTo: spamassassin-dev@incubator.apache.org
ReportedBy: duncf@debian.org


I'm not sure which is correct (I haven't checked... it's late) but
Mail::SpamAssassin and Mail::SpamAssassin::PerMsgLearner have different ideas of
how to use the learner.

From : M:SA

$status = $f->learn ($mail, $id, $isspam, $forget)

From : M:SA:PML

(IN SYNOPSIS)
my $status = $spamtest->learn ($mail);

(IN METHODS)
$status->learn_spam($id)
$status->learn_ham($id)
...


It doesnt seem to make sense that you need to pass M:SA whether or not the
message is spam, given that you have to call one or the other. I guess
M:SA:PML's documentation hasn't changed?



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