From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UBiCOJZ6MmDrVgAA0tVLHw (envelope-from ) for ; Sun, 21 Feb 2021 15:21:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6GJENJZ6MmAPKAAAB5/wlQ (envelope-from ) for ; Sun, 21 Feb 2021 15:21:58 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 A43CCB51F for ; Sun, 21 Feb 2021 16:21:58 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1A8CB27066; Sun, 21 Feb 2021 10:21:47 -0500 (EST) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by mail.notmuchmail.org (Postfix) with ESMTPS id CF91A26BE9 for ; Sun, 21 Feb 2021 10:21:41 -0500 (EST) Received: by mail-wm1-x335.google.com with SMTP id o82so11280393wme.1 for ; Sun, 21 Feb 2021 07:21:41 -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=IwC+jqwABTSbGSKUqzbCA0WwW9e5gtw8n3iwPrPyCwA=; b=QvCBY2Je0JK1WCFya0zHHZ/9LgZXiG6FQh0u887X/BZ8ApspInujiH0cJTqiKQnaTd kN5DoALGuDmV56Q+4rEz2uT9GZAJM4spHHcCbBSJMQmh9epO4tDY975go1sfZDzvIV+1 NuAgR9VxFmlh0zinHpymKYqFJGcHJfhIZv734pef1wnitHRNvknCI2oVkq5heaRkkJVx OQI0vtBhb1xaWfyGmwuc/PulkB4nM56VCXwv0eHFNym2Q1ZM8BwRz/pIaavpTumqIf6P 8wev3he9XZiaOHsvBsA8QGkX14fN+SJgCkkrr37M9RF/T/rJo/Ue1aRUqCEiKCTd+2TW 04cg== 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=IwC+jqwABTSbGSKUqzbCA0WwW9e5gtw8n3iwPrPyCwA=; b=q83kNz/dovj2djmUimSr8iN1eso9LOohZAV/26knc6Y021Pn8D1O0JehWjcpvL/fpJ gc5vE7YJfXRvhoOOu2r774wZYJh5fXnIId8S7EDi8RyHwlI68WjFMswVjKh4AkC67BWu kOJ4pEhwZvlPkQiRBZdPAlZAQnCOeNJ1kRMX+PahyzBBS/Fd2qVLtZ+dhyCE8daEWhgP fZth11YeXU6aU4Sa4vL7jv8xjPDs/ccDgUE5t3PvTRCjHNypPH1XwI6SUzhxTZtvlz6j YYdTwgjNxxe+YjtWJWxt6qmXNFhnOyERnKuya/yvhfWTSH5NkxBHSk5YFKakaEnidMCc 5/OQ== X-Gm-Message-State: AOAM533gVhkUiwT7fHM0PY6SN1OLu5WDPLak4a/6egiF8fV36uckTbgx REvhQ2WJ1qiL1nx1EaWZpwjz1ZqZdME3HXUl X-Google-Smtp-Source: ABdhPJy5ZrcPWADXYQYx7MaN/aAaUyDVQ7KSr91u+KF7lLzLesGNsH+/QBFWbQ7vvlvZgePikUnmTA== X-Received: by 2002:a05:600c:154c:: with SMTP id f12mr16886289wmg.40.1613920893148; Sun, 21 Feb 2021 07:21:33 -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 s23sm21753150wmc.35.2021.02.21.07.21.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 07:21:32 -0800 (PST) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 0fd9eaad; Sun, 21 Feb 2021 15:21:32 +0000 (UTC) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v2 0/2] scaffolding for autocrypt support Date: Sun, 21 Feb 2021 15:21:30 +0000 Message-Id: <20210221152132.2302112-1-dme@dme.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Message-ID-Hash: JRMWNPCGDGDNCYZMLPAVRFBKLDZAKIER X-Message-ID-Hash: JRMWNPCGDGDNCYZMLPAVRFBKLDZAKIER 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: 1.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=dme-org.20150623.gappssmtp.com header.s=20150623 header.b=QvCBY2Je; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: A43CCB51F X-Spam-Score: 1.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6i75pMVk1SHz 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. 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. v2: - Rebased on master (bremner). 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.30.0