Content-type: text/html Man page of Mail::SpamAssassin::PerMsgLearner

Mail::SpamAssassin::PerMsgLearner

Section: User Contributed Perl Documentation (3pm)
Updated: 2008-06-10
Index Return to Main Contents
 

NAME

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

SYNOPSIS

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

 

DESCRIPTION

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->did_learn()
Returns 1 if the message was learned from or forgotten succesfully.
$status->finish()
Finish with the object.
 

SEE ALSO

"Mail::SpamAssassin" "spamassassin"


 

Index

NAME
SYNOPSIS
DESCRIPTION
METHODS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 04:14:16 GMT, September 24, 2010