From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YGbSNAo2dGGEFQEAgWs5BA (envelope-from ) for ; Sat, 23 Oct 2021 18:19:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qN5XMAo2dGGiLAAAbx9fmQ (envelope-from ) for ; Sat, 23 Oct 2021 16:19:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1DE121B252 for ; Sat, 23 Oct 2021 18:19:22 +0200 (CEST) Received: from localhost ([::1]:49896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meJjr-0006gn-Og for larch@yhetil.org; Sat, 23 Oct 2021 12:19:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meJjT-0006fC-99 for guix-devel@gnu.org; Sat, 23 Oct 2021 12:18:55 -0400 Received: from out2.migadu.com ([2001:41d0:2:aacc::]:39059) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meJjP-0001Qr-Q4; Sat, 23 Oct 2021 12:18:55 -0400 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=1635005926; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l1kdZr9ATxJySLjGg+iIOb+WpJiJtQjOjGUv4GywUnA=; b=iKrzi2pBbqhO8JFvfpUbqVmFe0rcb98WT/S2MS0JiBDSMl/Jy1bUL56MPtfhqoLS6tcDqN w/K2hAF1P7hZ4tCZYX8FhZbCcfXrQ9vcA87Q2uAHOBz2Y1z3vScEhdYVT5uMLWkAlbqkv5 i+T+DbaTbHUbdy0t1i7idV96PlD3wrLiTR+MSSa7PqkElB6bOanzf1SQfBy8ER5Mzvh3Y+ 0nHuU8b4oyDgEyb/uJrdlUu9V/KoIW+su+GWkAjpava6J0w1PqQVizdjk2UjwfUdvDRBpC k+oM17NFR7BwivDawSEgoYSGECnrpa9JUcNR8vPXShZTRb1cA05UqlxLk6IXYQ== From: Kyle Meyer To: zimoun Subject: public-inbox/elfeed -> Maildir bridge (was: Incentives for review) In-Reply-To: <86ee8cb397.fsf@gmail.com> References: <874k9if7am.fsf@inria.fr> <2525618.Ivme1NzmDS@popigai> <19702203.8mP8Cj2GaD@popigai> <87ilxosehi.fsf@kyleam.com> <86ee8cb397.fsf@gmail.com> Date: Sat, 23 Oct 2021 12:18:39 -0400 Message-ID: <87a6izsoio.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=kyle@kyleam.com; helo=out2.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635005962; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=l1kdZr9ATxJySLjGg+iIOb+WpJiJtQjOjGUv4GywUnA=; b=BtTqt5HllCJ5cde/TCKvo7orQigBVrH8pxA8t+2q/17fg4w/NnAhVkES2GI8axGhXRHhjt sybQAzp5IIly+q123TKUclJHiml15rHqxPJ8/ZeurFsssJF44CU/rnb0/Kb0jjcnt9kNfX OMspi+4NpHu6T8/y4wJAdaygkjThLyz37gzevIPSwepa/Sj8qeXfdRj3AkMY321j1uqx9x EGXMzfLHsRrTbTc6PE2WR9JpsQJYyyERj5a99PxLKQu6XtNi+YRG46jDzFyA3ZrE/GLQcF CqzbEKWOhvCifr53vI/v5bh/ElUtwLgcWnNl9w8ULqyh5Mb7rYgZtEdAe+iFxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635005962; a=rsa-sha256; cv=none; b=AgLwavH7rM/olqi5XOEzXq4G7DS+RPuMQdpd8xb7X0NWLH2msP7V8GsvOREanyvkj9MCDe S0A7cKRo31X77klhsiiZTtFNcVDSZ2ak+kp/BZPVaRKVWCGNM9trCbY2bnRPH5obDe8XDo XJoD/8xfOQscOuNMZv1hUMzsjkO/Y2bkZ4e1xGcFxDyiLFyFrLLuWms5kmkYWVoqAgXX7p ydUYUPqqs/61XAzRUl30b9TsjvLTwtBQdCRhzPuS3H4uln+da1F1+6ckFKR6OtCtDCMjBj zvpkdiVUOYwpFPTMQJKu60FHyIkTj0SD9jwd9VilfPITjPUK6GK+Jp3IYUKoXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=iKrzi2pB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: 0.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=iKrzi2pB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 1DE121B252 X-Spam-Score: 0.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7Uj22mBg4qQE zimoun writes: > On Fri, 22 Oct 2021 at 21:43, Kyle Meyer wrote: [...] >> https://yhetil.org/guix-patches/?q=3Ddfn:docker&x=3DA > > Oh, that=E2=80=99s really cool! > > Do you know a bridge from Elfeed to Message-mode? > > I mean, using the feed you are referring, Alice gets: > > --8<---------------cut here---------------start------------->8--- > Title: [bug#50227] [PATCH] build-system/go: Trim store references using t= he native compiler option. > Author: Marius Bakke > Date: Fri, 27 Aug 2021 18:45:37 CEST > Feed: dfn:docker - search results > Link: https://yhetil.org/guix-patches/20210827164423.17109-1-marius@gnu.o= rg/ > > * guix/build/go-build-system.scm (build): Add '-trimpath' to the 'go inst= all' > invocation. > [=E2=80=A6] > --8<---------------cut here---------------end--------------->8--- > > This is really nice for filtering and only reading what is of interest > (for Alice). > > However, it is not handy for commenting. It could be cool to have a way > to turn what I showed (above) into a reply message. Does a bridge exist > somewhere? Good question. It does :) With the link in the Elfeed buffer, we can grab the mbox for a message or entire thread from a public-inbox instance. So, for those that use a Maildir locally, the steps are to 1) download the message (or thread) 2) convert the mbox into Maildir messages 3) visit the message in your regular mail client 4) proceed as usual piem can take care of 1 and 2 (as well as 3, with some user configuration) via its piem-inject-thread-into-maildir command: https://docs.kyleam.com/piem/Injecting-messages-into-a-Maildir-directory.= html This command isn't specific to Elfeed buffers. It just needs to be in a buffer where piem knows how to grab the public-inbox link: https://docs.kyleam.com/piem/Enabling-integration-libraries.html The other supported modes that are interesting in this context are EWW and Gnus. Elfeed -> Notmuch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D zimoun, I know you're a Notmuch user, so here's how you could configure things so that calling piem-inject-thread-into-maildir from the Elfeed buffer above throws you into a Notmuch show buffer for the message. * add a guix-patches entry to piem-inboxes (add-to-list 'piem-inboxes '("guix-patches" :url "https://yhetil.org/guix-patches/")) * point piem to your Maildir (setq piem-maildir-directory "/path/to/maildir/") Alternatively, messages for different projects can be sent to different Maildir directories using the :maildir keyword in the piem-inboxes entry. (This feature was added by Xinglu Chen :>) * enable Elfeed integration (piem-elfeed-mode 1) * tell piem to visit the message in Notmuch after injecting (add-hook 'piem-after-mail-injection-functions (lambda (mid) (require 'notmuch-lib) (message "Running notmuch new") (call-process notmuch-command nil nil nil "new") (notmuch-show (concat "id:" mid)))) You actually asked about ending up in a (Notmuch) message mode buffer rather than a Notmuch show buffer. Perhaps tossing a notmuch-show-reply in there after notmuch-show will work as expected, though I haven't tested it. lei =3D=3D=3D This email is already too long, but I should briefly mention that Eric Wong (public-inbox's creator) has been working on a local command-client client for public-inbox called lei (local email interface). To continue with the original dfn example, you could do something like this with lei to dump those results to a Maildir and then view those in mutt: $ lei q -o /tmp/mdir --mua mutt \ -I https://yhetil.org/guix-patches dfn:docker d:4.months.ago.. # later: update with new results and visit in mutt $ lei up --mua mutt /tmp/mdir Anyway, that's just a small piece of what lei can do, and IMO it's really impressive and exciting. It will be a part of the next public-inbox release, v1.7. (How this all ends up integrating with piem is very much up in the air.) For a high-level picture that includes public-inbox, lei, and b4: Konstantin Ryabitsev, b4's creator, recently talked at the Linux Plumbers Conference: https://linuxplumbersconf.org/event/11/contributions/983/attachments/759/= 1421/Doing%20more%20with%20lore%20and%20b4.pdf The lei part starts on page 24. I believe there's a video out there, but I haven't watched it and don't have a link on hand.