ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



Mail::SpamAssassin::PerMsgLearner(3) User Contributed Perl DocumentationMail::SpamAssassin::PerMsgLearner(3)



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"



perl v5.8.8                                      2007-05-21             Mail::SpamAssassin::PerMsgLearner(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.