Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

post-facto spamassassin

by Juerd (Abbot)
on May 01, 2003 at 08:59 UTC ( [id://254583]=sourcecode: print w/replies, xml ) Need Help??
Category: E-Mail Programs
Author/Contact Info /msg Juerd
Description: Moves spam from one Maildir to another, removing flags. Hardcoded everything, so change it before using it :)
Usage: perl mvspam.pl Maildir/cur/*
use Parallel::ForkManager;
use File::Copy;
my $fm = Parallel::ForkManager->new(5);

for (@ARGV) {
    $fm->start and next;
    if (system("spamc -c < $_")) {
        (my $newname = $_) =~ s/:.*//;
        move $_, "/home/juerd/Mail/spam/new/$newname" or die $!;
    }
    $fm->finish;
}
Replies are listed 'Best First'.
Re: post-facto spamassassin
by Huele-pedos (Acolyte) on May 01, 2003 at 17:08 UTC
    muy bueno!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: sourcecode [id://254583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found