From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oLmhGE1PdWGaUwAAgWs5BA (envelope-from ) for ; Sun, 24 Oct 2021 14:19:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mHhOFE1PdWEOFgAAB5/wlQ (envelope-from ) for ; Sun, 24 Oct 2021 12:19:25 +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 311A2327DC for ; Sun, 24 Oct 2021 14:19:25 +0200 (CEST) Received: from localhost ([::1]:53016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mecT8-000139-QE for larch@yhetil.org; Sun, 24 Oct 2021 08:19:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mecSa-00011q-Qc for guix-devel@gnu.org; Sun, 24 Oct 2021 08:18:46 -0400 Received: from libre.brussels ([144.76.234.112]:41698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mecSY-0008Ci-2n for guix-devel@gnu.org; Sun, 24 Oct 2021 08:18:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libre.brussels; s=mail; t=1635077917; h=from:from: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; bh=rpk2JwTF/AE/iROvjAJY/+EbPKpq+zjzSvQG3TSLZEk=; b=nx6Kd2iwaR8l7iFOaqHZpUDRnXCtdXSHxFM+gTfnL018i1zXqroP5RxygUMu3WWZEMrjbN rJlFmWSN5BC0tPmsonuT8CYT0UGWqM7yfJQpV6OD9pQ10kh+dzVBxPFcpHaFKd4yNe4pNN u6BRPbI7l2YnpJJOFGg2xUXnd+lcMWg= MIME-Version: 1.0 Date: Sun, 24 Oct 2021 12:18:37 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: "Jonathan McHugh" Message-ID: <5138bb7d67613a083251209c10374b65@libre.brussels> Subject: Re: public-inbox/elfeed -> Maildir bridge (was: Incentives for review) To: "Kyle Meyer" , "zimoun" In-Reply-To: <87a6izsoio.fsf@kyleam.com> References: <87a6izsoio.fsf@kyleam.com> <874k9if7am.fsf@inria.fr> <2525618.Ivme1NzmDS@popigai> <19702203.8mP8Cj2GaD@popigai> <87ilxosehi.fsf@kyleam.com> <86ee8cb397.fsf@gmail.com> Received-SPF: pass client-ip=144.76.234.112; envelope-from=indieterminacy@libre.brussels; helo=libre.brussels X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-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 X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: 311A2327DC X-Spam-Score: -4.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: d6ED+vUVO16v Hi Kyle, Lei and B4 look like very cool tools, thanks for the reference! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jonathan McHugh indieterminacy@libre.brussels October 23, 2021 6:19 PM, "Kyle Meyer" wrote: > zimoun writes: >=20 >>=20On Fri, 22 Oct 2021 at 21:43, Kyle Meyer wrote: >=20 >=20[...] >=20 >>>=20https://yhetil.org/guix-patches/?q=3Ddfn:docker&x=3DA >>=20 >>=20Oh, that=E2=80=99s really cool! >>=20 >>=20Do you know a bridge from Elfeed to Message-mode? >>=20 >>=20I mean, using the feed you are referring, Alice gets: >>=20 >>=20--8<---------------cut here---------------start------------->8--- >> Title: [bug#50227] [PATCH] build-system/go: Trim store references usin= g the 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@gn= u.org >>=20 >>=20* guix/build/go-build-system.scm (build): Add '-trimpath' to the 'go= install' >> invocation. >> [=E2=80=A6] >> --8<---------------cut here---------------end--------------->8--- >>=20 >>=20This is really nice for filtering and only reading what is of intere= st >> (for Alice). >>=20 >>=20However, 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 exis= t >> somewhere? >=20 >=20Good question. It does :) >=20 >=20With the link in the Elfeed buffer, we can grab the mbox for a messag= e > or entire thread from a public-inbox instance. So, for those that use a > Maildir locally, the steps are to >=20 >=201) 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 >=20 >=20piem can take care of 1 and 2 (as well as 3, with some user > configuration) via its piem-inject-thread-into-maildir command: >=20 >=20https://docs.kyleam.com/piem/Injecting-messages-into-a-Maildir-direct= ory.html >=20 >=20This 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: >=20 >=20https://docs.kyleam.com/piem/Enabling-integration-libraries.html >=20 >=20The other supported modes that are interesting in this context are EW= W > and Gnus. >=20 >=20Elfeed -> Notmuch > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >=20zimoun, I know you're a Notmuch user, so here's how you could configu= re > things so that calling piem-inject-thread-into-maildir from the Elfeed > buffer above throws you into a Notmuch show buffer for the message. >=20 >=20* add a guix-patches entry to piem-inboxes >=20 >=20(add-to-list 'piem-inboxes > '("guix-patches" :url "https://yhetil.org/guix-patches")) >=20 >=20* point piem to your Maildir >=20 >=20(setq piem-maildir-directory "/path/to/maildir/") >=20 >=20Alternatively, 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 :>) >=20 >=20* enable Elfeed integration >=20 >=20(piem-elfeed-mode 1) >=20 >=20* tell piem to visit the message in Notmuch after injecting >=20 >=20(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)))) >=20 >=20You 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. >=20 >=20lei > =3D=3D=3D >=20 >=20This email is already too long, but I should briefly mention that Eri= c > Wong (public-inbox's creator) has been working on a local command-clien= t > client for public-inbox called lei (local email interface). >=20 >=20To continue with the original dfn example, you could do something lik= e > this with lei to dump those results to a Maildir and then view those in > mutt: >=20 >=20$ 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 >=20 >=20Anyway, 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.) >=20 >=20For a high-level picture that includes public-inbox, lei, and b4: > Konstantin Ryabitsev, b4's creator, recently talked at the Linux > Plumbers Conference: >=20 >=20https://linuxplumbersconf.org/event/11/contributions/983/attachments/= 759/1421/Doing more with lore > and b4.pdf >=20 >=20The 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.