messages so that $maildir/spam still gets cleared out.
}
if (@result <= 2) {
- exit(0);
+ return ();
}
STDOUT->autoflush(1);
}
sub filter_mail {
+ @_ or return ();
my $msgcount = @_ - 2; # don't count . and ..
my $len = length($msgcount);
my @baton;
}
getfiles('.'));
- $run and update_dot_folders(\%folders);
+ $run and %folders and update_dot_folders(\%folders);
maildir_spam();