On 7/30/10 10:58 AM, Adam Moskowitz wrote:
Background: SpamAssassin version 3.2.5 running on Perl version 5.8.8 on
CentOS release 5.2 (Final) -- all set up for me by my sysadmin. Everything
works fine when using all the defaults. However . . .
this should get your started. need to write a perl script.
my $spamtest = new Mail::SpamAssassin(
{
rules_filename => "",
userprefs_filename => "",
username => "",
debug => $debug,
local_tests_only => 1,
dont_copy_prefs => 1,
ignore_site_cf_files => 1,
post_config_text =>
'
skip_rbl_checks 1
use_dcc 0
use_bayes 0
bayes_auto_learn 0
use_razor2 0
use_auto_whitelist 0
',
}
);
my $mail = $spamtest->parse($msg2, 0);
my $status = $spamtest->check ($mail);
$status->finish();
--
Michael Scheidell, CTO
o: 561-999-5000
d: 561-948-2259
ISN: 1259*1300
> *| *SECNAP Network Security Corporation
* Certified SNORT Integrator
* 2008-9 Hot Company Award Winner, World Executive Alliance
* Five-Star Partner Program 2009, VARBusiness
* Best in Email Security,2010: Network Products Guide
* King of Spam Filters, SC Magazine 2008
______________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r).
For Information please see http://www.secnap.com/products/spammertrap/
______________________________________________________________________