From 58e9a503ca23aeb6f4632d9e660a0c0dfb4b8fb4 Mon Sep 17 00:00:00 2001 From: epg <> Date: Thu, 30 Mar 2006 09:19:06 +0000 Subject: [PATCH] Make a couple of tiny adjustments to the early exit case for no new messages so that $maildir/spam still gets cleared out. --- minc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.56.0