From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id APEzF65t22WDIQAA62LTzQ:P1 (envelope-from ) for ; Sun, 25 Feb 2024 17:41:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id APEzF65t22WDIQAA62LTzQ (envelope-from ) for ; Sun, 25 Feb 2024 17:41:18 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=stebalien.com header.s=fm3 header.b="T 6ELfrR"; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b=GF1JlyfT; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=stebalien.com (policy=reject) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708879278; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Zk0VQcAv5xfqglZ4nQjvz1svCVQ99WBkBz53jJyk6Uk=; b=OsBkXYjdO1mYaMpJQZMANa8JPOClFr7/NeGNH36DXRqAtLWq6c0Znj2VswZH6el4jOAsoV gj1GRNceSTbHUYoU+w0adX1BD9//DehiGmEvLVflYbwrFXEEKqTSryuXTbiBxj23PKk+Og CTV5keKGShNYcgzZeFEycluIpViQPfWPo/SMW8G/I8+/y51IbvaFzk3MCCZLdazRj+E3pk 4nAvLNPU3Qnf4nesRAn4G7PNp7qNUfAawIFZW7ohyHOJ9ahKYhRYZCWuwhiqYzNww9Fx6M jozXrMzb5kQtOR0swW7VOhAVF4gt/stwfGC/T9Z9Obn7TPBeKVO5WMw+P93kXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=stebalien.com header.s=fm3 header.b="T 6ELfrR"; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b=GF1JlyfT; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=stebalien.com (policy=reject) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708879278; a=rsa-sha256; cv=none; b=hUKWqZfumelLOJnr8hFgd2SHvjhjdfsQYRSO2ujMkM6l3PZu1AcJ9uwCXoS8a/HF+EzYk5 fa0PnHBks2f8IXY7noMR9Y1ztMpmWM9cWNE42aKBrG6X5YqDIwDBdb8lOFcth5EqlqLVVh YgCg9v1WgHxAZ0oPLtpSXyCta71hJdP59+mEuRlJtEsGtq/oqGVb1kt4bF5Y8kdtTfxxNI 9SGyEgssjbHLPuaEEy/0tUJaQE6doGUsLkFNIp6BvJzhnNZppdusuzXyHIznmhJL7Lk5NU QwHMCKv25DusZBleUZATr8Jcn9x4I4eWutWs8BPnZC8kz5jjaBQGaOhV7NG9vg== Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3664C6CAB5 for ; Sun, 25 Feb 2024 17:41:16 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 008105E513; Sun, 25 Feb 2024 16:41:14 +0000 (UTC) X-Greylist: delayed 447 seconds by postgrey-1.36 at yantan; Sun, 25 Feb 2024 16:41:10 UTC Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mail.notmuchmail.org (Postfix) with ESMTPS id D535C5E016 for ; Sun, 25 Feb 2024 16:41:10 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 9B87E3200564; Sun, 25 Feb 2024 11:33:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 25 Feb 2024 11:33:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1708878818; x= 1708965218; bh=APGO9jXpTG6gfypJuizvlNCopu03+5hZLb245Rs8arY=; b=T 6ELfrR0MLdrgr0z896QyM7j6XHDbJAXS587v4BvPx/B/mOsYxWvTdaNxPl5d1mIY kq0bRe4mOEKiVkRlhUez9Pa4nRgh3uexxkiC77B1dlmv4OPAuw2fO35uepCn1Cs1 3UnJdG5aqX1U1BdAxpFz5s0dcrSZRJQkyPqMRCEAKlReZo0TXUy9aVyi5E+swe3T mq7nY17rdW6X5eW4xvAa/qHkNz8CxivTpuQe6hvNV90191y+x961R5PacwM9ZNet C25GHvU3kKSWn4LnszrYJt/MCex53HhBubM0bNjg+m34H+EcisMAiQ6bN28dL+df XLI9k0gHE49h1N+Z0l7uw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708878818; x=1708965218; bh=APGO9jXpTG6gfypJuizvlNCopu03 +5hZLb245Rs8arY=; b=GF1JlyfT1K9ua9Hk/F+htNxHIWqO1VkXm327pyRkhnbk ivQQCC7n3apE7rwRzt9eNnieD+cUpU4yyWlJ0GPGWI3hSSx50v1edXNL1hITYsw3 aDo9FQNQNQph1Lk7kRdEgqFvoGhY5MW4xjTfvLnn1A1ls2BrOqZqkKN09Cj92W1/ Pfxa3U/Bfsa99QKFkYAA4VHrGkZZSk1zUG4+UTJKETDBdzOlEYm5l4k1Q4e23PHE xcLgBHHDY/u92oWjgQIwLcs1UDdgwrhhH8cSKk0fEPRSN4t6Or43e2D4kKf8rYqv Y8pPyZWkLjaze2oAvrYDsdRMOMNVLUxg9eGaewavlg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgedtgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepufhtvghvvghn ucetlhhlvghnuceoshhtvghvvghnsehsthgvsggrlhhivghnrdgtohhmqeenucggtffrrg htthgvrhhnpedvkeehkeegleehheeggfduleektefhhffgueffteekgedtvdefuddutddt jeejvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsthgvvhgvnhesshhtvggsrghlihgvnhdrtghomh X-ME-Proxy: Feedback-ID: ie8a146a7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 25 Feb 2024 11:33:37 -0500 (EST) From: Steven Allen To: Sandra Snan , Antoine =?utf-8?Q?Beaupr?= =?utf-8?Q?=C3=A9?= , Notmuch list Subject: Re: revisiting Autocrypt in notmuch, MVP In-Reply-To: <87frxgc25o.fsf@ellen.idiomdrottning.org> References: <87mt2utszi.fsf@angela.anarc.at> <87plwn6f16.fsf@angela.anarc.at> <87jzmv5che.fsf@angela.anarc.at> <87h6hxdw2b.fsf@stebalien.com> <87frxgc25o.fsf@ellen.idiomdrottning.org> Date: Sun, 25 Feb 2024 08:33:36 -0800 Message-ID: <874jdw8pwf.fsf@stebalien.com> MIME-Version: 1.0 Message-ID-Hash: 2WNW4WB3PORSSGGI3QWVFYYYCNBD6YMP X-Message-ID-Hash: 2WNW4WB3PORSSGGI3QWVFYYYCNBD6YMP X-MailFrom: steven@stebalien.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: dkg@fifthhorseman.net, dme@dme.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 2.97 X-Spam-Score: 2.97 X-Migadu-Queue-Id: 3664C6CAB5 X-Migadu-Scanner: mx11.migadu.com X-TUID: mWywBrIn3tpu 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")))