Hi, I'm currently trying to use the load_scoreonly_sql cmd in a perl script to retreive a score from a mysql database for a user.
However when I execute the script, I get a blank score. The script does take about 5-10 seconds for it to send back a blank, so I'm lead to believe that it is communicating with the mysql server. I can correctly using spamc/spamd with sql paramaters to get the right value. Can somebody please point me in the right direction. My script looks something like this: —------------------------------------------------------------------------ #!/usr/local/bin/perl use Mail::SpamAssassin my $test = Mail::SpamAssassin->new(); my $username = 'test'; $score = $test->load_scoreonly_sql ($username); print "Score: ". $score; —----------------------------------------------------------------------- Thanks, Regards, Craig Marchant Systems Administrator Ace Internet Services Pty Ltd Phone: +61 2 48618888 Fax: +61 2 48622985 E-mail: [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