From 7349713101700e488231ad9ffece8ee42de0928c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 2 Feb 2021 11:46:49 +0000 Subject: lei q: emit progress and counting via PktOp Sometimes it can be confusing for "lei q" to finish writing to a Maildir|mbox and not know if it did anything. So show some per-external progress and stats. These can be disabled via the new --quiet/-q switch. We differ slightly from mairix(1) here, as we use stderr instead of stdout for reporting totals (and we support parallel queries from various sources). --- xt/lei-sigpipe.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xt') diff --git a/xt/lei-sigpipe.t b/xt/lei-sigpipe.t index 448bd7db..1aa9ed07 100644 --- a/xt/lei-sigpipe.t +++ b/xt/lei-sigpipe.t @@ -15,7 +15,7 @@ my $do_test = sub { pipe(my ($r, $w)) or BAIL_OUT $!; open my $err, '+>', undef or BAIL_OUT $!; my $opt = { run_mode => 0, 1 => $w, 2 => $err }; - my $cmd = [qw(lei q -t), @$out, 'bytes:1..']; + my $cmd = [qw(lei q -q -t), @$out, 'bytes:1..']; my $tp = start_script($cmd, $env, $opt); close $w; sysread($r, my $buf, 1); -- cgit v1.2.3-24-ge0c7