]> diplodocus.org Git - minc/commitdiff
(filter_mail): Don't move @_ to @msglist, just use @_.
authorepg <>
Tue, 6 Sep 2005 16:20:56 +0000 (16:20 +0000)
committerepg <>
Tue, 6 Sep 2005 16:20:56 +0000 (16:20 +0000)
minc

diff --git a/minc b/minc
index 0e31445..f3ebfcd 100755 (executable)
--- a/minc
+++ b/minc
@@ -529,8 +529,7 @@ sub find_mh_folder {
 }
 
 sub filter_mail {
 }
 
 sub filter_mail {
-    my @msglist = @_;
-    my $msgcount = @msglist - 2; # don't count . and ..
+    my $msgcount = @_ - 2; # don't count . and ..
     my $len = length($msgcount);
     my @baton;
     my $msg;
     my $len = length($msgcount);
     my @baton;
     my $msg;
@@ -557,7 +556,7 @@ sub filter_mail {
         }
     }
 
         }
     }
 
-    foreach $msg (@msglist) {
+    for $msg (@_) {
         ($msg eq '.' or $msg eq '..') and next;
 
         if ($printfilenames) {
         ($msg eq '.' or $msg eq '..') and next;
 
         if ($printfilenames) {