From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: [PATCH] Encrypt replies to encrypted messages by default. Date: Sun, 02 Jan 2011 16:37:45 -0500 Message-ID: <87vd27oul2.fsf@red-bean.com> Reply-To: Karl Fogel NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294004288 2533 80.91.229.12 (2 Jan 2011 21:38:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Jan 2011 21:38:08 +0000 (UTC) To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 02 22:38:04 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZVco-0004yQ-Td for ged-emacs-devel@m.gmane.org; Sun, 02 Jan 2011 22:38:03 +0100 Original-Received: from localhost ([127.0.0.1]:36172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZVcn-0002rW-PJ for ged-emacs-devel@m.gmane.org; Sun, 02 Jan 2011 16:38:01 -0500 Original-Received: from [140.186.70.92] (port=44232 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZVcg-0002pv-FG for emacs-devel@gnu.org; Sun, 02 Jan 2011 16:37:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZVce-0001N0-CH for emacs-devel@gnu.org; Sun, 02 Jan 2011 16:37:54 -0500 Original-Received: from osh-net-219-98.onshore.net ([66.146.219.98]:55510 helo=sanpietro.red-bean.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZVce-0001MQ-9s for emacs-devel@gnu.org; Sun, 02 Jan 2011 16:37:52 -0500 Original-Received: from localhost ([127.0.0.1]:43170 helo=floss ident=kfogel) by sanpietro.red-bean.com with esmtp (Exim 4.72) (envelope-from ) id 1PZVcX-00035k-Va for emacs-devel@gnu.org; Sun, 02 Jan 2011 15:37:46 -0600 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134175 Archived-At: 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 + + * gnus-msg.el (gnus-message-replyencrypt): Default to `t'. + 2010-12-27 Daiki Ueno * mml2015.el (mml2015-epg-sign, mml2015-epg-encrypt): Take care the