]> diplodocus.org Git - minc/commitdiff
(filter_mail): Reduce $msgcount by two now that filter_mail receives a
authorepg <>
Mon, 26 Apr 2004 16:23:30 +0000 (16:23 +0000)
committerepg <>
Mon, 26 Apr 2004 16:23:30 +0000 (16:23 +0000)
list that contains '.' and '..'.

minc

diff --git a/minc b/minc
index 09ae2bb..d1cea45 100755 (executable)
--- a/minc
+++ b/minc
@@ -531,7 +531,7 @@ sub find_mh_folder {
 
 sub filter_mail {
     my @msglist = @_;
 
 sub filter_mail {
     my @msglist = @_;
-    my $msgcount = @msglist;
+    my $msgcount = @msglist - 2; # don't count . and ..
     my $msgcountlen = length($msgcount);
     my @baton;
     my $msg;
     my $msgcountlen = length($msgcount);
     my @baton;
     my $msg;