Greetings!  I'm just getting started with SA, so please pardon
any FAQs.  I *did* search the archives first, though.. no joy.

I've installed SA 2.01 and Mail::Audit 2.1 on an RH 5.2 system
running Perl 5.6.1.  Mail::Internet is from MailTools 1.43.
I am trying to pipe mail through a filter from sendmail with
the following script:

use Mail::Audit:
use Mail::SpamAssassin::MyMailAudit;
use Mail::SpamAssassin;

my $mail = Mail::SpamAssassin::MyMailAudit->new();
my $spamtest = Mail::SpamAssassin->new({userprefs_filename
                                           => 'valid-file-name'});
my $status = $spamtest->check($mail);

It is blowing up in the last line with:

Can't locate object method "head" via package "Mail::SpamAssassin::MyMailAudit"
 (perhaps you forgot to load "Mail::SpamAssassin::MyMailAudit"?) at
 /usr/local/lib/perl5/site_perl/5.6.1/Mail/Audit.pm line 791.
554 "| <myscript>"... unknown mailer error 2

Am I doing something wrong, or has this method gone deprecated in
recent SA versions?  The script is basically from a friend's
system, for whom it works.

TIA..
-- 
#ken    P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to