zimoun writes: > On Fri, 22 Oct 2021 at 21:43, Kyle Meyer <k...@kyleam.com> wrote: [...] >> https://yhetil.org/guix-patches/?q=dfn:docker&x=A > > Oh, that’s 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 the > native compiler option. > Author: Marius Bakke <mar...@gnu.org> > Date: Fri, 27 Aug 2021 18:45:37 CEST > Feed: dfn:docker - search results > Link: https://yhetil.org/guix-patches/20210827164423.17109-1-mar...@gnu.org/ > > * guix/build/go-build-system.scm (build): Add '-trimpath' to the 'go install' > invocation. > […] > --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 ================= 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 === 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.