From: epg <> Date: Thu, 11 Mar 2004 23:12:20 +0000 (+0000) Subject: Rename kill_spam to preprocess in preparation for bloat. Clean up a X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/090d9c96874aabde16426358912d9976f6054ded Rename kill_spam to preprocess in preparation for bloat. Clean up a bit. --- diff --git a/minc b/minc index 538291a..9f006ef 100755 --- a/minc +++ b/minc @@ -568,19 +568,17 @@ sub get_headers { } ############################################################################### -# Spam handling +# Spam handling, sorting, etc. -sub kill_spam { - my @baton; +sub preprocess { my @msglist = @_; - my @result; + my @baton; my $msg; my $i; + my @result; @baton = spam_start_hook(); - @result = (); - $i = 0; foreach $msg (@msglist) { printf('%sChecking for spam... %6d/%d', "\r", ++$i, scalar(@msglist)); @@ -691,7 +689,7 @@ MAIN: { @msglist = getfiles("$MAILDIR/new"); if (not $filteronly) { - @msglist = kill_spam(@msglist); + @msglist = preprocess(@msglist); } if (not $spamonly) {