On Fri, 8 Mar 2002, Rodent of Unusual Size wrote:

> 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.

As you found earlier, something in Mail::Audit broke in the upgrade. Try
either using Mail::SpamAssassin::NoMailAudit (the new code), or try
downgrading Mail::Audit.

-- 
Matt.
<:->get a SMart net</:->


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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

Reply via email to