]> diplodocus.org Git - minc/commitdiff
Rename kill_spam to preprocess in preparation for bloat. Clean up a
authorepg <>
Thu, 11 Mar 2004 23:12:20 +0000 (23:12 +0000)
committerepg <>
Thu, 11 Mar 2004 23:12:20 +0000 (23:12 +0000)
bit.

minc

diff --git a/minc b/minc
index 538291a..9f006ef 100755 (executable)
--- 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) {