From: Jani Nikula Date: Mon, 14 Apr 2014 17:51:35 +0000 (+0300) Subject: Re: [PATCH] emacs: sign/encrypt replies to signed/encrypted messages X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b34af4037aaf2027179152e6df9396b7360c746e;p=notmuch-archives.git Re: [PATCH] emacs: sign/encrypt replies to signed/encrypted messages --- diff --git a/8f/09b0c65dce5cd55c362c915c32474bc57b8351 b/8f/09b0c65dce5cd55c362c915c32474bc57b8351 new file mode 100644 index 000000000..486cd67e5 --- /dev/null +++ b/8f/09b0c65dce5cd55c362c915c32474bc57b8351 @@ -0,0 +1,144 @@ +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 9AD9E431FBD + for ; Mon, 14 Apr 2014 10:51:43 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.699 +X-Spam-Level: +X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 + tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 373igepBmwIT for ; + Mon, 14 Apr 2014 10:51:37 -0700 (PDT) +Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com + [209.85.220.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id DC9CA431FBC + for ; Mon, 14 Apr 2014 10:51:36 -0700 (PDT) +Received: by mail-vc0-f178.google.com with SMTP id im17so7725830vcb.23 + for ; Mon, 14 Apr 2014 10:51:35 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:mime-version:in-reply-to:references:date + :message-id:subject:from:to:cc:content-type; + bh=vW3WQ9YPYD+1T6IcJ0ADqVa5Sg7mQt7NZDQX7x/boDw=; + b=b39xzwrCv8iK2yx467vPMJojkv+26LFIy5oYqlvNHb3q7lJkvTUiTqIVBa3KYRYUj9 + GbNQMbxo4tyyQdD8cehzhK8chOohpQh+Ay0PEwdtKR7A2RO671UI2viLX50/EmNw7gz9 + 0KjTUt02jrUvQi09gFHuZG2AJpS/ph9Hz5LbhFP/RMliIQCjX9ePbdB029G0r9CqrXdx + HI/ly7s3Z4JGjOMEyK5ywJ1ds9m8yNPr77dp1h36QXWFIlE6JFj4j5OKyZ/JwzC67LEU + QBZtEfsCFUOLurvnXz+URaGU2fHJuHJ60bnOipLLVTw7URYDDmKK8+aZEPJ7NA2nlKMo + a/jQ== +X-Gm-Message-State: + ALoCoQm5mVdT6PTGFQP3Ibvq+I3UVmQn7d7jSiwHvfp1eYhsCawZdiHgfuyJrmsODY4rAzsqKPUo +MIME-Version: 1.0 +X-Received: by 10.220.92.135 with SMTP id r7mr37624586vcm.11.1397497895097; + Mon, 14 Apr 2014 10:51:35 -0700 (PDT) +Received: by 10.58.171.65 with HTTP; Mon, 14 Apr 2014 10:51:35 -0700 (PDT) +Received: by 10.58.171.65 with HTTP; Mon, 14 Apr 2014 10:51:35 -0700 (PDT) +In-Reply-To: <8738hf25pa.fsf@maritornes.cs.unb.ca> +References: <87a9f1c8aq.fsf@servo.finestructure.net> + <1396689486-19232-1-git-send-email-jani@nikula.org> + <8738hf25pa.fsf@maritornes.cs.unb.ca> +Date: Mon, 14 Apr 2014 20:51:35 +0300 +Message-ID: + +Subject: Re: [PATCH] emacs: sign/encrypt replies to signed/encrypted messages +From: Jani Nikula +To: David Bremner +Content-Type: multipart/alternative; boundary=047d7b66f5fb9caa6104f7045533 +Cc: Notmuch Mail +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:51:43 -0000 + +--047d7b66f5fb9caa6104f7045533 +Content-Type: text/plain; charset=UTF-8 + +On Apr 14, 2014 10:17 AM, "David Bremner" wrote: +> +> 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? +> + +I'd be fine with that (see the commit message). + +Jani. + +> 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)))) +> > + + +--047d7b66f5fb9caa6104f7045533 +Content-Type: text/html; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable + +


+On Apr 14, 2014 10:17 AM, "David Bremner" <david@tethera.net> wrote:
+>
+> Jani Nikula <jani@nikula.org= +> writes:
+> > +(defun notmuch-mua-reply-crypto (parts)
+> > + =C2=A0(loop for part in parts
+> > + =C2=A0 =C2=A0 if (notmuch-match-content-type (plist-get part :c= +ontent-type) "multipart/signed")
+> > + =C2=A0 =C2=A0 =C2=A0 do (mml-secure-message-sign)
+>
+> How do people feel about disabling/removing the previous two lines? +>

+

I'd be fine with that (see the commit message).

+

Jani.

+

> It's less obvious to me that you always want to sig= +n in reply to a
+> signed message (probably you want to unconditionally always sign in th= +at
+> case). =C2=A0As written this causes some inconvenience =C2=A0for users= + that have
+> notmuch-crypto-process-mime=3Dt to verify inbound signatures, but don&= +#39;t
+> necessarily have the ability to sign outbound mail.
+>
+>
+> > + =C2=A0 =C2=A0 else if (notmuch-match-content-type (plist-get pa= +rt :content-type) "multipart/encrypted")
+> > + =C2=A0 =C2=A0 =C2=A0 do (mml-secure-message-sign-encrypt)
+> > + =C2=A0 =C2=A0 else if (notmuch-match-content-type (plist-get pa= +rt :content-type) "multipart/*")
+> > + =C2=A0 =C2=A0 =C2=A0 do (notmuch-mua-reply-crypto (plist-get pa= +rt :content))))
+> > +
+

+ +--047d7b66f5fb9caa6104f7045533--