Hello. Can anybody help with following troubles? I wrote simple perl
script based on POD documentation for spamassassin:

--------------------------------

#!/usr/bin/perl
use Mail::SpamAssassin;
my ($mail, $spamtest, $status, $spamdir);
my $f = new Mail::SpamAssassin();
$f->load_scoreonly_sql ("vlad");
my $mail = Mail::SpamAssassin::NoMailAudit->new();
$status=$f->check($mail);
if($status->is_spam()){print "spam\n";} else {print "nospam\n";}

-------------------------------

This programm correctly determine spam/nospam message delivered to
stdin, but do not load user_prefs from mysql and don't generate any
error. The spamc/spamd working with sql correctly (local.cf contain
needed config options). What's wrong?

-- 
Best regards,
 vlad                          mailto:[EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to