unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Karl Fogel <kfogel@red-bean.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: [PATCH] Encrypt replies to encrypted messages by default.
Date: Sun, 02 Jan 2011 16:37:45 -0500	[thread overview]
Message-ID: <87vd27oul2.fsf@red-bean.com> (raw)

I'd like to apply the patch below, which causes replies to encrypted
messages to also be encrypted by default, at least in Gnus.

Reasoning: 

As a failure mode, it's much better to accidentally encrypt than to
accidentally *not* encrypt -- especially with email, where the reply may
quote parts of the original mail (which was sent encrypted, thus raising
the likelihood that quoted excerpts would be of a sensitive nature).

It actually happened to me recently: I accidentally sent a reply in
plaintext, quoting parts of a rather sensitive mail, because I'd
unconsciously expected Emacs to automatically encrypt the reply.  That
incident started me looking for some way to control this behavior.  I
was glad to find `gnus-message-replyencrypt' (I thought I was going to
have to implement it), but surprised it was not set to `t' by default.

Note the same logic does not apply to `gnus-message-replysign', so I
haven't changed that variable's default in this patch.

Does anyone think this is a bad idea?  If we agree it's good, is it
enough to commit it to Emacs, or should I also send it to a separate
Gnus list?

-Karl

  === modified file 'lisp/gnus/gnus-msg.el'
  --- lisp/gnus/gnus-msg.el	2010-12-02 22:21:31 +0000
  +++ lisp/gnus/gnus-msg.el	2011-01-02 21:27:04 +0000
  @@ -244,7 +244,7 @@
     :type 'boolean)
   
   (defcustom gnus-message-replyencrypt
  -  nil
  +  t
     "Automatically encrypt replies to encrypted messages.
   See also the `mml-default-encrypt-method' variable."
     :group 'gnus-message
  
  === modified file 'lisp/gnus/ChangeLog'
  --- lisp/gnus/ChangeLog	2010-12-27 09:46:02 +0000
  +++ lisp/gnus/ChangeLog	2011-01-02 21:27:42 +0000
  @@ -1,3 +1,7 @@
  +2011-01-02  Karl Fogel  <kfogel@red-bean.com>
  +
  +	* gnus-msg.el (gnus-message-replyencrypt): Default to `t'.
  +
   2010-12-27  Daiki Ueno  <ueno@unixuser.org>
   
   	* mml2015.el (mml2015-epg-sign, mml2015-epg-encrypt): Take care the
  



             reply	other threads:[~2011-01-02 21:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-02 21:37 Karl Fogel [this message]
2011-01-05 15:26 ` [PATCH] Encrypt replies to encrypted messages by default Stefan Monnier
2011-01-05 17:18   ` Karl Fogel

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://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87vd27oul2.fsf@red-bean.com \
    --to=kfogel@red-bean.com \
    --cc=emacs-devel@gnu.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://git.savannah.gnu.org/cgit/emacs.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).