Mail::SpamAssassin::PerMsgLearner(3pm) | User Contributed Perl Documentation | Mail::SpamAssassin::PerMsgLearner(3pm) |
Mail::SpamAssassin::PerMsgLearner - per-message status (spam or not-spam)
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();
The Mail::SpamAssassin "learn()" method returns an object of this class. This object encapsulates all the per-message state for the learning process.
2023-04-30 | perl v5.36.0 |