From cb385f1ccae906c8548eb4ee3cec6343be8e0bb8 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Tue, 25 Mar 2014 11:20:59 -0400 Subject: [PATCH] Total should actually be against the folder entirely, not just the date. --- remove-spam-high-confidence-maildir.plx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remove-spam-high-confidence-maildir.plx b/remove-spam-high-confidence-maildir.plx index e7bdd50..7cf1ce5 100755 --- a/remove-spam-high-confidence-maildir.plx +++ b/remove-spam-high-confidence-maildir.plx @@ -75,6 +75,7 @@ MAIL: while (my $file = readdir MAILDIR) { print STDERR "File $file has Unparsable Date header $mailDate"; next MAIL; } + $total++; print "\nDate: $parsedDate" if ($VERBOSE > 2); @@ -96,7 +97,6 @@ MAIL: while (my $file = readdir MAILDIR) { next MAIL; } } - $total++; print " Confidence: $dspamVal{Confidence}, Probability: $dspamVal{Probability}\n" if ($VERBOSE > 2);