From 61dde041a5875ce0f69f00101abfcfc54912d07d Mon Sep 17 00:00:00 2001 From: David Bremner Date: Tue, 15 Apr 2014 14:15:13 +2100 Subject: [PATCH] Re: [PATCH] emacs: sign/encrypt replies to signed/encrypted messages --- 4d/3a05cbe68fcac59d41b67b9e06f9b3b7005bb0 | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 4d/3a05cbe68fcac59d41b67b9e06f9b3b7005bb0 diff --git a/4d/3a05cbe68fcac59d41b67b9e06f9b3b7005bb0 b/4d/3a05cbe68fcac59d41b67b9e06f9b3b7005bb0 new file mode 100644 index 000000000..6329e8ca0 --- /dev/null +++ b/4d/3a05cbe68fcac59d41b67b9e06f9b3b7005bb0 @@ -0,0 +1,72 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 4D2AA431FBD + for ; Mon, 14 Apr 2014 10:17:40 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id gcVrsY7dE69C for ; + Mon, 14 Apr 2014 10:17:36 -0700 (PDT) +Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net + [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id EB973431FBC + for ; Mon, 14 Apr 2014 10:17:35 -0700 (PDT) +Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim + 4.72) (envelope-from ) + id 1WZkTe-0005mS-Hy; Mon, 14 Apr 2014 17:15:26 +0000 +Received: (nullmailer pid 3709 invoked by uid 1000); Mon, 14 Apr 2014 + 17:15:13 -0000 +From: David Bremner +To: Jani Nikula , notmuch@notmuchmail.org +Subject: Re: [PATCH] emacs: sign/encrypt replies to signed/encrypted messages +In-Reply-To: <1396689486-19232-1-git-send-email-jani@nikula.org> +References: <87a9f1c8aq.fsf@servo.finestructure.net> + <1396689486-19232-1-git-send-email-jani@nikula.org> +User-Agent: Notmuch/0.17+174~g4efbc9f (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Mon, 14 Apr 2014 14:15:13 -0300 +Message-ID: <8738hf25pa.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 14 Apr 2014 17:17:40 -0000 + +Jani Nikula writes: +> +(defun notmuch-mua-reply-crypto (parts) +> + (loop for part in parts +> + if (notmuch-match-content-type (plist-get part :content-type) "multipart/signed") +> + do (mml-secure-message-sign) + +How do people feel about disabling/removing the previous two lines? + +It's less obvious to me that you always want to sign in reply to a +signed message (probably you want to unconditionally always sign in that +case). As written this causes some inconvenience for users that have +notmuch-crypto-process-mime=t to verify inbound signatures, but don't +necessarily have the ability to sign outbound mail. + + +> + else if (notmuch-match-content-type (plist-get part :content-type) "multipart/encrypted") +> + do (mml-secure-message-sign-encrypt) +> + else if (notmuch-match-content-type (plist-get part :content-type) "multipart/*") +> + do (notmuch-mua-reply-crypto (plist-get part :content)))) +> + -- 2.26.2