From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS16276 188.165.0.0/16 X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C9BDA1F4B4 for ; Sat, 17 Apr 2021 20:14:01 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1618690440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=q3JqsIm/KynOCC0jkZIllG5YuwcV11FIVUwHa8CoWlo=; b=yjs2SOcSLbkvz2aIgcsVsftxCggoamnPjOzwWWtj5PPsrrX+xfg5GKuwpiaHC+LsB7nUhG Cz6auCqjIXX+XK+DVBGIdyKCKPc3I8CZcCCe7Tn19wON1f/NkNzbiZcyrfRXYRpU039XS5 WKn+cFuDbe023K2uqxPLdStQr77RbDQBZilqYCdv8TvyV5h7duZ2JkfRm94AUYpEMn3bJ8 /psMwod+DSRUIXEsj7+Z2E3pIXh/fOZUu6fLy/HTVRuH3o1x6lV7TQn4QV1NhaI9PNBxj2 N6+gAyNFdr8F0rqxA/Mqs7nXXaFIGmrA1MrD1qFQjmmPCO5v2itcthAsnXpllQ== From: Kyle Meyer To: Eric Wong Cc: meta@public-inbox.org Subject: Re: [PATCH] lei q: fix MUA spawn after reading query from stdin In-Reply-To: <20210417190001.GA8903@dcvr> References: <87v98klxg3.fsf@kyleam.com> <20210417190001.GA8903@dcvr> Date: Sat, 17 Apr 2021 16:13:50 -0400 Message-ID: <87fszolldt.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com List-Id: Eric Wong writes: > Kyle Meyer wrote: >> I'm not a mutt user, but I think that's because mutt sees that stdin >> isn't attached to a tty. I haven't tried anything on my end yet, but >> perhaps there's a clean way to make --stdin and --mua [*] work together. > > Thanks for the report. Yes, that's correct, fortunately we can > reasonably expect stdout to be a terminal and the patch below > should fix it. Confirmed. Thanks for the quick fix. >> [*] The only other --mua value I checked was 'mail' (and that shows a >> similar issue), but I'm guessing other MUAs don't not work well >> with --stdin either. > > Btw, since you seem to be a gnus user; I'm a lightweight Gnus user :) I just use gnus to read NNTP, and use Notmuch for mail. But... > does/can gnus work via --mua= ? ... I don't see a good way to do this, no. A more natural approach would be calling lei from Emacs. I've been thinking a good amount about Emacs integration with lei in the context of piem (). My initial focus will be something closer to Notmuch's Emacs interface. I'm pretty excited about the it, as it will be the main way I interact with lei (but sadly it'll be at least a few weeks before I have the free time to begin any work on it). The above interface will probably reduce my use of Gnus to lists that don't have public-inbox archives, but I still might try to add some Gnus integration eventually. Gnus has a mairix backend, so that'd be the first placed I'd study for approaching integration.