]> diplodocus.org Git - minc/commitdiff
(filter_mail): Use $len to format the string rather than hard-coding 6
authorepg <>
Tue, 15 Jun 2004 17:48:47 +0000 (17:48 +0000)
committerepg <>
Tue, 15 Jun 2004 17:48:47 +0000 (17:48 +0000)
spaces for the numbers.

minc

diff --git a/minc b/minc
index 729bbb2..1bc5b9c 100755 (executable)
--- a/minc
+++ b/minc
@@ -577,7 +577,7 @@ sub filter_mail {
             $FOLDERS{$mhfolder} = 1;
         }
 
-        printf('%6d SPAM %6d saved %6d/%1d',
+        printf("\%${len}d SPAM \%${len}d saved \%${len}d/%1d",
                $spam, $saved, $spam + $saved, $msgcount);
 
         defined($maxmsgs) and ($spam + $saved < $maxmsgs or last);