From 3a291f7ac72437f19a0482533e2f94a8cd45fbc2 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Tue, 25 Mar 2014 11:20:46 -0400 Subject: [PATCH] Fix output to properly display. --- remove-spam-high-confidence-maildir.plx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/remove-spam-high-confidence-maildir.plx b/remove-spam-high-confidence-maildir.plx index d288ec1..e7bdd50 100755 --- a/remove-spam-high-confidence-maildir.plx +++ b/remove-spam-high-confidence-maildir.plx @@ -118,9 +118,10 @@ MAIL: while (my $file = readdir MAILDIR) { my $percent = ($countDeleted / $total) * 100.00; print sprintf("%.2f", $percent), "% ($countDeleted/$total) ", - (defined $COUNT_ONLY and $COUNT_ONLY ? + ((defined $COUNT_ONLY and $COUNT_ONLY) ? + " would be deleted.\n" : sprintf("were deleted.\nThis leaves %d in the folder.\n", - $total - $countDeleted) : " would be deleted.\n"); + $total - $countDeleted)); ############################################################################### # # Local variables: