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 succesfully.
28
29 $status->finish()
30 Finish with the object.
31
33 "Mail::SpamAssassin" "spamassassin"
34
35
36
37perl v5.8.8 2008-01-0M5ail::SpamAssassin::PerMsgLearner(3)