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