PDA

View Full Version : Mail::spamassassin - Spam Detector And Markup


Herbster
08-07-2004, 06:59 AM
I see in another post Perl supports Mail::SpamAssassin.
I'm ASSuming this means people like me (or smarter) can write scripts to tag email as possible spam.

The only doc I can find gives this synopsis:
SYNOPSIS
my $spamtest = Mail::SpamAssassin->new();
my $mail = $spamtest->parse( $message );
my $status = $spamtest->check( $mail );
if ($status->is_spam()) {
$mail = $status->rewrite_mail();
} else {
...
}
...
$status->finish();
$mail->finish();

But there must be more to it than this. It doesn't say anything about username/password or how to loop through messages. Anyone have any experience with this or know of decent documentation? Or better yet, a ready made script that will perform these functions? I've Googled 'til my eyes are crossed. :blink: