disclaimer: I posted this to comp.lang.perl.modules (no reply yet), but since 
this list is the FIRST place I looked, I'll send here as well.

Hello,

Until yesterday, I was happily using a combination of Mail::Audit and
Mail::SpamAssassin to filter my mail. Yesterday I upgraded
SpamAssassin to version 3.0.0 and my old script started failing with
this error:

Command output: Can't locate
auto/Mail/Audit/MailInternet/extract_mes.al in @INC (@INC contains:
/usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3
etc etc etc

Has anyone seen this error? Know how to fix it?

thanks!
Phil

here is my (hopefully anonymized) filter script:

#!/usr/local/bin/perl

use Mail::Audit;
use Mail::SpamAssassin;
my $item = Mail::Audit->new;

#send "page" messages to my cell phone
if ($item->to =~ /[EMAIL PROTECTED]/) {
        $item->noexit(1);  #turn off exit momentarily, so a copy still goes
to local mailbox
        $item->resend("[EMAIL PROTECTED]");  #verizon
        $item->noexit(0);
}

#spamassasin
my $spamtest = Mail::SpamAssassin->new();
my $status = $spamtest->check($item);
if ($status->is_spam ()) {
        $item->accept("~/Maildir/.spamassassin");  #file for further review,
if desired
}

#forward all incoming mail to gmail
$item->noexit(1);  #turn off exit momentarily, so a copy still goes to
local mailbox
$item->resend("[EMAIL PROTECTED]");
$item->noexit(0);

#temp - want to see the spam scores on ham
$status->rewrite_mail();

#by default, accept all
$item->accept("~/Maildir/");

Reply via email to