unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Jameson Graef Rollins <jrollins@finestructure.net>,
	Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: [PATCH] emacs: remove auto-signing of replies to signed messages
Date: Mon, 14 Apr 2014 22:48:08 +0300	[thread overview]
Message-ID: <m2mwfnpu9z.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <1397504450-15498-1-git-send-email-jrollins@finestructure.net>

On Mon, Apr 14 2014, Jameson Graef Rollins <jrollins@finestructure.net> wrote:

> It was decided that auto-signing is potentially too troublesome for the
> apparently common case of users who enable crypto processing for the
> purpose of checking signature validity but who are not in a position to
> sign out-going messages.  Users can still manually invoke signing as needed.
>
> Encrypting replies to encrypted messages is more of a security issue
> so we leave it in place.
> ---

LGTM. Works for me. +1

Tomi


>  emacs/notmuch-mua.el | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index bf6253f..95e4a4d 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -116,10 +116,9 @@ list."
>  	notmuch-mua-hidden-headers))
>  
>  (defun notmuch-mua-reply-crypto (parts)
> +  "Add mml sign-encrypt flag if any part of original message is encrypted."
>    (loop for part in parts
> -	if (notmuch-match-content-type (plist-get part :content-type) "multipart/signed")
> -	  do (mml-secure-message-sign)
> -	else if (notmuch-match-content-type (plist-get part :content-type) "multipart/encrypted")
> +	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))))
> @@ -236,7 +235,7 @@ list."
>  	;; Quote the original message according to the user's configured style.
>  	(message-cite-original)))
>  
> -    ;; Sign and/or encrypt replies to signed and/or encrypted messages.
> +    ;; Crypto processing based crypto content of the original message
>      (when process-crypto
>        (notmuch-mua-reply-crypto (plist-get original :body))))
>  
> -- 
> 1.9.1
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

  reply	other threads:[~2014-04-14 19:48 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-12 19:24 encrypting replies to encrypted mail Jameson Graef Rollins
2014-01-12 20:01 ` Nicolás Reynolds
2014-01-12 20:21   ` Jameson Graef Rollins
2014-01-12 20:50 ` Jani Nikula
2014-04-05  9:18 ` [PATCH] emacs: sign/encrypt replies to signed/encrypted messages Jani Nikula
2014-04-07  6:16   ` Jameson Graef Rollins
2014-04-07  6:40   ` [PATCH] emacs: process crypto for reply only when specified Jameson Graef Rollins
2014-04-13  1:46     ` David Bremner
2014-04-13 11:00       ` Tomi Ollila
2014-04-13 12:56         ` David Bremner
2014-04-13 20:41           ` Tomi Ollila
2014-04-13 22:15             ` David Bremner
2014-04-13 23:37             ` Jameson Graef Rollins
2014-04-14  8:42               ` Tomi Ollila
2014-04-14 12:26                 ` Tomi Ollila
2014-04-14 17:15   ` [PATCH] emacs: sign/encrypt replies to signed/encrypted messages David Bremner
2014-04-14 17:51     ` Jani Nikula
2014-04-14 18:24       ` Jameson Graef Rollins
2014-04-14 18:59         ` David Bremner
2014-04-14 19:40           ` [PATCH] emacs: remove auto-signing of replies to signed messages Jameson Graef Rollins
2014-04-14 19:48             ` Tomi Ollila [this message]
2014-04-15 10:02             ` David Bremner
2014-04-15 15:26               ` Jameson Graef Rollins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2mwfnpu9z.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=jrollins@finestructure.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).