From: Steven Allen <steven@stebalien.com>
To: "Sandra Snan" <sandra.snan@idiomdrottning.org>,
"Antoine Beaupré" <anarcat@debian.org>,
"Notmuch list" <notmuch@notmuchmail.org>
Cc: dkg@fifthhorseman.net, dme@dme.org
Subject: Re: revisiting Autocrypt in notmuch, MVP
Date: Sun, 25 Feb 2024 08:33:36 -0800 [thread overview]
Message-ID: <874jdw8pwf.fsf@stebalien.com> (raw)
In-Reply-To: <87frxgc25o.fsf@ellen.idiomdrottning.org>
Awesome, and I see you're already upstreaming hooks. But I think you can
simplify this because every reply buffer has a hidden "In-Reply-To"
header (can be shown with `message-widen-and-recenter`). You should be
able to attach a hook to `message-setup-hook`, I think? Ideally you'd
use `message-header-hook`, but that doesn't appear to be run by notmuch.
So, something like should get you the ID of the message to which we're replying.
(save-restriction
(message-narrow-to-headers)
(mail-header-parse-address-lax (mail-fetch-field "In-Reply-To")))
prev parent reply other threads:[~2024-02-25 16:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-26 18:10 revisiting Autocrypt in notmuch, MVP Antoine Beaupré
2024-02-23 3:22 ` Antoine Beaupré
2024-02-23 17:14 ` Antoine Beaupré
2024-02-25 4:09 ` Steven Allen
2024-02-25 9:40 ` Sandra Snan
2024-02-25 16:33 ` Steven Allen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874jdw8pwf.fsf@stebalien.com \
--to=steven@stebalien.com \
--cc=anarcat@debian.org \
--cc=dkg@fifthhorseman.net \
--cc=dme@dme.org \
--cc=notmuch@notmuchmail.org \
--cc=sandra.snan@idiomdrottning.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).