about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-02 22:37:33 -0300
committerEric Wong <e@80x24.org>2021-04-03 05:08:58 +0000
commitcc276aa9548186cd82b59cd2c8d178010ab8c79d (patch)
tree1e9fdd4f48c6362a0d8c3e8e60e74a694f4fd8fb
parent3811f2946efc19189ecab8ea82ea4ffaa564c1c0 (diff)
downloadpublic-inbox-cc276aa9548186cd82b59cd2c8d178010ab8c79d.tar.gz
Sometimes I want to save debug info to a file or pipe even when
spawning an MUA.
-rw-r--r--lib/PublicInbox/LEI.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index cdb4b347..475af8f0 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -849,6 +849,7 @@ sub start_mua {
         if ($self->{lxs} && $self->{au_done}) { # kick wait_startq
                 syswrite($self->{au_done}, 'q' x ($self->{lxs}->{jobs} // 0));
         }
+        return unless -t $self->{2}; # XXX how to determine non-TUI MUAs?
         $self->{opt}->{quiet} = 1;
         delete $self->{-progress};
         delete $self->{opt}->{verbose};