]> diplodocus.org Git - minc/commitdiff
Don't break when -m is not specified.
authorepg <>
Sat, 3 Apr 2004 06:37:39 +0000 (06:37 +0000)
committerepg <>
Sat, 3 Apr 2004 06:37:39 +0000 (06:37 +0000)
minc

diff --git a/minc b/minc
index 92553c4..c144f2e 100755 (executable)
--- a/minc
+++ b/minc
@@ -616,7 +616,7 @@ sub filter_mail {
         printf('%6d SPAM %6d saved %6d/%1d',
                $spam, $saved, $spam + $saved, $msgcount);
 
-        $spam + $saved < $maxmsgs or last;
+        defined($maxmsgs) and ($spam + $saved < $maxmsgs or last);
     }
     print("\n");