Procmail is dead, long live Mail::Audit!
2006/08/29 filed under /perlThe all feared and loathed procmail is finally history on my system. As usual, I check things out way too late, but now felt the urge to really take a look at Mail::Audit.
I've seen that module run on Perlmonk and was surprised by the ease of use. Within a few minutes, I converted my obscure procmail recipes and added some stuff I always wanted.
My basic backup and filtering still applies, but now I've added the nice feature of informing users (once, thanks to Mail::Audit::KillDups) that I will not reply their mails for they use Google servers. It's really quite lame and easy to implement:
foreach my $h ($mail->received) {
$google++ if($h =~ /google\.com/);
}
#...
$mail->reply(body=>$msg)
if not $mail->killdups($mail->from);
Now we can even report the number of google servers their mail passed ;-)
Also I now started using the Little Brother's Database for address book populating method. All incoming mails will be scanned and email addresses will be added to my addressbook. Exactly what I need (thanks Mark!).
And of course I can now easily strip attachments and dump them on my filesystem somewhere for later reference.
How I love the power of Perl (and the community)!



Comments