Mail::SpamAssassin::PerMsgLearner3pm
Per-message status (spam or not-spam)
Usage
my $spamtest = Mail::SpamAssassin->new({'rules_filename' => '/etc/spamassassin.rules','userprefs_filename' => $ENV{HOME}.'/.spamassassin/user_prefs'});my $mail = $spamtest->parse();my $status = $spamtest->learn($mail,$id,$isspam,$forget);my $didlearn = $status->did_learn();$status->finish();
Overview
The Mail::SpamAssassin learn() method returns an object of this class. This object encapsulates all the per-message state for the learning process.
Methods
$didlearn = $status->
|
Returns |
|---|---|
$status->
|
Finish with the object. |
Releases
12 releases since Debian 3.1 (Sarge); the text changed 11 times.