From: epg <> Date: Sat, 3 Apr 2004 05:45:43 +0000 (+0000) Subject: Move STDOUT auto-flushing to filter_mail where it belongs. X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/704e9caefb52692e7b2247002d65357034fa6715?hp=a246c0e14a35e72938d606b8551f9f97623da47e Move STDOUT auto-flushing to filter_mail where it belongs. --- diff --git a/minc b/minc index cfac97f..790ecfe 100755 --- a/minc +++ b/minc @@ -36,9 +36,6 @@ use Log::Dispatch; use Log::Dispatch::File; use POSIX qw(strftime WEXITSTATUS WIFEXITED); -# Autoflush STDOUT for the benefit of the status reporting in kill_spam(). -STDOUT->autoflush(1); - # If a filter set's header is $MAGIC_TO_TOKEN, that set is compared # against headers matching this regex (taken from procmail). my $MAGIC_TO_REGEX = '^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope |Apparently(-Resent)?)-To)'; @@ -591,6 +588,8 @@ sub filter_mail { @baton = spam_start_hook(); + + STDOUT->autoflush(1); print("$msgcount messages..."); foreach $msg (@msglist) { if (spam_check($msg, @baton)) {