Re: revisiting Autocrypt in notmuch, MVP

Subject: Re: revisiting Autocrypt in notmuch, MVP

Date: Sun, 25 Feb 2024 08:33:36 -0800

To: Sandra Snan, Antoine Beaupré, Notmuch list

Cc: dkg@fifthhorseman.net, dme@dme.org

From: Steven Allen


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")))
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: