From: epg <> Date: Thu, 30 Mar 2006 09:19:06 +0000 (+0000) Subject: Make a couple of tiny adjustments to the early exit case for no new X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/58e9a503ca23aeb6f4632d9e660a0c0dfb4b8fb4?hp=cd36914a0e6650c87f1deb83ed1ec78f72951a4b Make a couple of tiny adjustments to the early exit case for no new messages so that $maildir/spam still gets cleared out. --- diff --git a/minc b/minc index fbeba15..6c0aad2 100755 --- a/minc +++ b/minc @@ -294,7 +294,7 @@ sub getfiles { } if (@result <= 2) { - exit(0); + return (); } STDOUT->autoflush(1); @@ -605,6 +605,7 @@ sub find_mh_folder { } sub filter_mail { + @_ or return (); my $msgcount = @_ - 2; # don't count . and .. my $len = length($msgcount); my @baton; @@ -795,7 +796,7 @@ MAIN: { } getfiles('.')); - $run and update_dot_folders(\%folders); + $run and %folders and update_dot_folders(\%folders); maildir_spam();