From 090d9c96874aabde16426358912d9976f6054ded Mon Sep 17 00:00:00 2001 From: epg <> Date: Thu, 11 Mar 2004 23:12:20 +0000 Subject: [PATCH] Rename kill_spam to preprocess in preparation for bloat. Clean up a bit. --- minc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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) { -- 2.56.0