Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mail::spamassassin::persistentaddrlist(3) [redhat man page]

Mail::SpamAssassin::PersistentAddrList(3)		User Contributed Perl Documentation		 Mail::SpamAssassin::PersistentAddrList(3)

NAME
Mail::SpamAssassin::PersistentAddrList - persistent address list base class SYNOPSIS
my $factory = PersistentAddrListSubclass->new(); $spamtest->set_persistent_addr_list_factory ($factory); ... call into SpamAssassin classes... SpamAssassin will call: my $addrlist = $factory->new_checker($spamtest); $entry = $addrlist->get_addr_entry ($addr); ... DESCRIPTION
All persistent address list implementations, used by the auto-whitelist code to track known-good email addresses, use this as a base class. METHODS
$factory = PersistentAddrListSubclass->new(); This creates a factory object, which SpamAssassin will call to create a new checker object for the persistent address list. my $addrlist = $factory->new_checker(); Create a new address-list checker object from the factory. Called by the SpamAssassin classes. $entry = $addrlist->get_addr_entry ($addr); Given an email address $addr, return an entry object with the details of that address. The entry object is a reference to a hash, which must contain at least two keys: "count", which is the count of times that address has been encountered before; and "totscore", which is the total of all scores for messages associated with that address. From these two fields, an average score will be calculated, and the score for the current message will be regressed towards that mean message score. The hash can contain whatever other data your back-end needs to store, under other keys. The method should never return "undef", or a hash that does not contain a "count" key and a "totscore" key. $entry = $addrlist->add_score($entry, $score); This method should add the given score to the whitelist database for the given entry, and then return the new entry. $entry = $addrlist->remove_entry ($entry); This method should remove the given entry from the whitelist database. $entry = $addrlist->finish (); Clean up, if necessary. Called by SpamAssassin when it has finished checking, or adding to, the auto-whitelist database. perl v5.8.0 2002-02-19 Mail::SpamAssassin::PersistentAddrList(3)

Check Out this Related Man Page

Courier::Filter::Module::SpamAssassin(3pm)		User Contributed Perl Documentation		Courier::Filter::Module::SpamAssassin(3pm)

NAME
Courier::Filter::Module::SpamAssassin - SpamAssassin message filter module for the Courier::Filter framework SYNOPSIS
use Courier::Filter::Module::SpamAssassin; my $module = Courier::Filter::Module::SpamAssassin->new( prefs_file => '/etc/courier/filters/courier-filter-spamassassin.cf', sa_options => { # any Mail::SpamAssassin options }, logger => $logger, inverse => 0, trusting => 0, testing => 0, debugging => 0 ); my $filter = Courier::Filter->new( ... modules => [ $module ], ... ); DESCRIPTION
This class is a filter module class for use with Courier::Filter. It matches a message if its SpamAssassin spam score exceeds the configured threshold. Constructor The following constructor is provided: new(%options): returns Courier::Filter::Module::SpamAssassin Creates a new SpamAssassin filter module. %options is a list of key/value pairs representing any of the following options: prefs_file The path of a SpamAssassin preferences file. If this option is specified, its value is passed to the Mail::SpamAssassin constructor's "userprefs_filename" option . If undef, SpamAssassin is instructed not to read any preferences besides its default configuration files. Defaults to undef. sa_options A hash-ref specifying options for the Mail::SpamAssassin object used by this filter module. See "new" in Mail::SpamAssassin for the supported options. All options of the Courier::Filter::Module constructor are also supported. Please see "new" in Courier::Filter::Module for their descriptions. Instance methods See "Instance methods" in Courier::Filter::Module for a description of the provided instance methods. SEE ALSO
Courier::Filter::Module, Courier::Filter::Overview. For AVAILABILITY, SUPPORT, COPYRIGHT, and LICENSE information, see Courier::Filter::Overview. AUTHOR
Julian Mehnle <julian@mehnle.net> perl v5.14.2 2011-12-27 Courier::Filter::Module::SpamAssassin(3pm)
Man Page