1Mail::SpamAssassin::PerUMssegrLeCaornnterri(b3u)ted PerlMaDiolc:u:mSepnatmaAtsisoanssin::PerMsgLearner(3)
2
3
4

NAME

6       Mail::SpamAssassin::PerMsgLearner - per-message status (spam or
7       not-spam)
8

SYNOPSIS

10         my $spamtest = Mail::SpamAssassin->new({
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

DESCRIPTION

21       The Mail::SpamAssassin learn() method returns an object of this class.
22       This object encapsulates all the per-message state for the learning
23       process.
24

METHODS

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

SEE ALSO

34       Mail::SpamAssassin(3) spamassassin(1)
35
36
37
38perl v5.36.0                      2023-01-2M1ail::SpamAssassin::PerMsgLearner(3)
Impressum