From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yKH6MRSn+F/9GAAA0tVLHw (envelope-from ) for ; Fri, 08 Jan 2021 18:40:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YGLTLRSn+F/MNwAAbx9fmQ (envelope-from ) for ; Fri, 08 Jan 2021 18:40:20 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 87FF79403D6 for ; Fri, 8 Jan 2021 18:40:19 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id EA95429DA9; Fri, 8 Jan 2021 13:40:09 -0500 (EST) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by mail.notmuchmail.org (Postfix) with ESMTPS id DF0D329D85 for ; Fri, 8 Jan 2021 13:40:06 -0500 (EST) Received: by mail-wm1-x336.google.com with SMTP id e25so9276647wme.0 for ; Fri, 08 Jan 2021 10:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lsdnTxaMJGub6B+lluX4k8WDRkIH1jXOVcvFQ/XUvsA=; b=GF8RbYRPvuDVUaA8XVGEMUnFVhQgPZuLP0ghkqVnIzo00cNV/E5JwvvLFwXbTeY3t/ xP5u7IBtIXPrLKWd/AAxW65HPrUoiwis+RFA22K6gAuMcWCzisPeuypFqWyhGuZOTMyj w20yBFkldv+Tmsfwpyxd7UlUEi/GnXNV3gzw8pi5xWd42YxY+vKOd4cniQWlKvE8rzQJ 9PNCtvi7fY3MHSraFnciCzh58sx2cXKGo7oZUuTtJao/O190qH+Xyf+LdJg2I/1KmXPT ShGhhCw3GmJvD5uWaCnxpzOzSpokWu625Ych4LR/JTKB7QtS6gvDp8MUIrThbXxJZABF HfSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lsdnTxaMJGub6B+lluX4k8WDRkIH1jXOVcvFQ/XUvsA=; b=qyue8ZnbmKv6HWiom31fcfhNGMN0CX/Ey9A6+TunRCx58tJGnj4T2phJjOghkrVrUl qcZi8tEzus0ZG0OkOAgSK127JCByTy/TV8+IKbm8rD8s11qyn5Pzbj33sYIf98+71Nyh g2oTl1gM7RVRPwTonCFWdMC1kIyWmxPOArvA4kPkUCZUtM6Bp16l37u7xFr/Gx1kA521 XoAZQ4uAx/lHq1WSsOTb94wE39yTvVJoZLpx+ixbwNUqbuMwN3ndnGXVQX11GP+6S+Nl yEjRZ8yApcqx97+63sySNGQEgWsRf19m31vJf1Exw0DlSI+0N0elSGwf19ujDesCAt52 IXmQ== X-Gm-Message-State: AOAM531O3Dv9Efmu+hKZ9aALhXiWwymnQKrVK8Y2080HoZJn9G62ekjN kqWWsxD/h0/Atwlrumo0PzcoKrEujO/52OY9 X-Google-Smtp-Source: ABdhPJzMSKws4xhJMw+mJ9x+o3N6RYrlimfE/cNXH1yYohx9yGj5kS0c7SRmgo1XCNoi62nC2Lfd9w== X-Received: by 2002:a7b:c052:: with SMTP id u18mr4141271wmc.139.1610131205409; Fri, 08 Jan 2021 10:40:05 -0800 (PST) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [2001:8b0:bb71:7140:64::1]) by smtp.gmail.com with ESMTPSA id y68sm14497884wmc.0.2021.01.08.10.40.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 10:40:04 -0800 (PST) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 2e9b430b; Fri, 8 Jan 2021 18:40:04 +0000 (UTC) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH 0/2] scaffolding for autocrypt support Date: Fri, 8 Jan 2021 18:40:02 +0000 Message-Id: <20210108184004.781702-1-dme@dme.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Message-ID-Hash: SBI3WCW33BE3ERZUHSDMDAHFF3Z7OIGD X-Message-ID-Hash: SBI3WCW33BE3ERZUHSDMDAHFF3Z7OIGD X-MailFrom: dme@dme.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 CC: David Edmondson X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.08 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=dme-org.20150623.gappssmtp.com header.s=20150623 header.b=GF8RbYRP; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 87FF79403D6 X-Spam-Score: 0.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: fH/9gtq4RU7+ I started looking at how to add autocrypt support based on https://git.sr.ht/~zge/autocrypt. Sending seems straightforward, as far as I understand autocrypt, at least. Dealing with inbound messages requires a few framework changes in the existing notmuch emacs code, which is these two patches. They are not autocrypt specific, and could be generally useful. I'll send autocrypt patches after some more testing and improvement. Currently things are pretty inefficient - autocrypt-notmuch-header will request the raw message on every call, which is expensive if the message is large. David Edmondson (2): emacs: with-current-notmuch-show-message should return the result of body emacs: Add notmuch-show-insert-msg-hook emacs/notmuch-show.el | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) -- 2.29.2