™.. Mail::SpamAssassin::SQLBasedAddrList - Online Linux Manual PageSection : 3
Updated : 2010-03-16
Source : perl v5.10.1
Note : User Contributed Perl Documentation
NAMEMail::SpamAssassin::SQLBasedAddrList − SpamAssassin SQL Based Auto Whitelist
SYNOPSIS my $factory = Mail::SpamAssassin::SQLBasedAddrList−>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, $origip);
...
DESCRIPTIONA SQL based persistent address list implementation. See \*(C`Mail::SpamAssassin::PersistentAddrList\*(C'\fR for more information. Uses DBI::DBD module access to your favorite database (tested with MySQL, SQLite and PostgreSQL) to store user auto-whitelists. The default table structure looks like this: CREATE TABLE awl (
username varchar(100) NOT NULL default '',
email varchar(255) NOT NULL default '',
ip varchar(16) NOT NULL default '',
count int(11) NOT NULL default '0',
totscore float NOT NULL default '0',
signedby varchar(255) NOT NULL default '',
PRIMARY KEY (username,email,signedby,ip) ) TYPE=MyISAM; Your table definition may change depending on which database driver you choose. There is a config option to override the table name. This module introduces several new config variables: user_awl_dsn user_awl_sql_username user_awl_sql_password user_awl_sql_table user_awl_sql_override_username see \*(C`Mail::SpamAssassin::Conf\*(C'\fR for more information.
newpublic class (Mail::SpamAssassin::SQLBasedAddrList) new () Description: This method creates a new instance of the SQLBasedAddrList factory and calls the parent's (PersistentAddrList) new method.
new_checkerpublic instance (Mail::SpamAssassin::SQLBasedAddrList) new_checker (\% $main) Description: This method is called to setup a new checker interface and return a blessed copy of itself. Here is where we setup the SQL database connection based on the config values.
get_addr_entrypublic instance (\%) get_addr_entry (String $addr, String $signedby) Description: This method takes a given $addr and splits it between the email address component and the ip component and performs a lookup in the database. If nothing is found in the database then a blank entry hash is created and returned, otherwise an entry containing the found information is returned. If a with_awl_signer configuration option is enabled only addresses signed by the given signing identity are taken into account, or, if $signedby is undefined (or empty) only unsigned entries are considered. A key, \*(C`exists_p\*(C'\fR, is set to 1 if an entry already exists in the database, otherwise it is set to 0.
add_scorepublic instance (\%) add_score (\% $entry, Integer $score) Description: This method adds a given $score to a given $entry. If the entry was marked as not existing in the database then an entry will be inserted, otherwise a simple update will be performed. NOTE: This code uses a self referential SQL call (ie set foo = foo + 1) which is supported by most modern database backends, but not everything calling itself a SQL database.
remove_entrypublic instance () remove_entry (\% $entry) Description: This method removes a given $entry from the database. If the ip portion of the entry address is equal to ‟none” then remove any perl-IP entries for this address as well.
finishpublic instance () finish () Description: This method provides the necessary cleanup for the address list.
_unpack_addrprivate instance (String, String) _unpack_addr(string $addr) Description: This method splits an autowhitelist address into it's two components, email and ip address. 0
Johanes Gumabo
Data Size : 13,917 byte
man-Mail::SpamAssassin::SQLBasedAddrList.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 171,754
Visitor ID : :
Visitor IP : 3.135.201.101 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Mail::SpamAssassin::SQLBasedAddrList.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Mail::SpamAssassin::SQLBasedAddrList.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Mail::SpamAssassin::SQLBasedAddrList.3pm|41|br══─}─══|'br══─}─══
) (htmlprn|149|Mail::SpamAssassin::SQLBasedAddrList.3pm|41|'br══─}─══ |'br══─}─══
) (rof_nr_x|149|Mail::SpamAssassin::SQLBasedAddrList.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (rof_unit_scale_px|41|Mail::SpamAssassin::SQLBasedAddrList.3pm|51/52|F|.ie \nF ══─{─══. de IX
) (rof_if|19|Mail::SpamAssassin::SQLBasedAddrList.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (htmlprn|149|Mail::SpamAssassin::SQLBasedAddrList.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX
) (rof_escape_sequence|91|Mail::SpamAssassin::SQLBasedAddrList.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2"
) (parse_manual_page_|249|Mail::SpamAssassin::SQLBasedAddrList.3pm|57|══─}─══|.══─}─══
) (htmlprn|149|Mail::SpamAssassin::SQLBasedAddrList.3pm|57|.══─}─══ |.══─}─══
) (rof_escape_sequence|91|Mail::SpamAssassin::SQLBasedAddrList.3pm|153|\*(C`Mail::SpamAssassin::PersistentAddrList\*(C'\fR for more information. |See \f(CW\*(C`Mail::SpamAssassin::PersistentAddrList\*(C'\fR for more information.
) (rof_escape_sequence|91|Mail::SpamAssassin::SQLBasedAddrList.3pm|184|\*(C`Mail::SpamAssassin::Conf\*(C'\fR for more information. |see \f(CW\*(C`Mail::SpamAssassin::Conf\*(C'\fR for more information.
) (rof_escape_sequence|91|Mail::SpamAssassin::SQLBasedAddrList.3pm|213|\*(C`exists_p\*(C'\fR, is set to 1 if an entry already exists in the database, |A key, \f(CW\*(C`exists_p\*(C'\fR, is set to 1 if an entry already exists in the database,
)