1Mail::SpamAssassin::PerUMssegrLeCaornnterri(b3u)ted PerlMaDiolc:u:mSepnatmaAtsisoanssin::PerMsgLearner(3)
2
3
4
6 Mail::SpamAssassin::PerMsgLearner - per-message status (spam or
7 not-spam)
8
10 my $spamtest = new Mail::SpamAssassin ({
11 'rules_filename' => '/etc/spamassassin.rules',
12 'userprefs_filename' => $ENV{HOME}.'/.spamassassin/user_prefs'
13 });
14 my $mail = $spamtest->parse();
15
16 my $status = $spamtest->learn($mail,$id,$isspam,$forget);
17 my $didlearn = $status->did_learn();
18 $status->finish();
19
21 The Mail::SpamAssassin "learn()" method returns an object of this
22 class. This object encapsulates all the per-message state for the
23 learning process.
24
26 $didlearn = $status->did_learn()
27 Returns 1 if the message was learned from or forgotten
28 successfully.
29
30 $status->finish()
31 Finish with the object.
32
34 "Mail::SpamAssassin" "spamassassin"
35
36
37
38perl v5.30.0 2019-10-0M1ail::SpamAssassin::PerMsgLearner(3)