From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75543 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] Encrypt replies to encrypted messages by default. Date: Sun, 02 Jan 2011 20:43:22 -0500 Message-ID: <878vz2oj7p.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 1294021269 27859 80.91.229.12 (3 Jan 2011 02:21:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2011 02:21:09 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23894@lists.math.uh.edu Mon Jan 03 03:21:05 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZa2h-0000sm-CU for ding-account@gmane.org; Mon, 03 Jan 2011 03:21:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PZa2D-0000co-PG; Sun, 02 Jan 2011 20:20:33 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PZZSN-0000P6-0W for ding@lists.math.uh.edu; Sun, 02 Jan 2011 19:43:31 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PZZSI-0001HO-OO for ding@lists.math.uh.edu; Sun, 02 Jan 2011 19:43:30 -0600 Original-Received: from osh-net-219-98.onshore.net ([66.146.219.98] helo=sanpietro.red-bean.com ident=Debian-exim) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PZZSH-0007fH-M6 for ding@gnus.org; Mon, 03 Jan 2011 02:43:25 +0100 Original-Received: from localhost ([127.0.0.1]:47415 helo=floss ident=kfogel) by sanpietro.red-bean.com with esmtp (Exim 4.72) (envelope-from ) id 1PZZSE-0001H2-NK for ding@gnus.org; Sun, 02 Jan 2011 19:43:22 -0600 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75543 Archived-At: (I recently sent this patch to emacs-devel@ [1], then thought maybe I should post it here instead.) The patch below causes replies to encrypted messages to also be encrypted by default. Justification: it's better to accidentally encrypt than to accidentally *not* encrypt. Especially with email, where a 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 happened to me recently: I accidentally sent a reply in plaintext, quoting parts of a rather sensitive mail, because I'd unconsciously expected Gnus to automatically encrypt the reply. That incident started me looking for some way to control this behavior. I was very glad to find `gnus-message-replyencrypt' -- I thought I was going to have to implement it -- but was surprised to find it set to nil 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 this patch seem like a good idea? diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0796918..aff0071 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-01-02 Karl Fogel + + * gnus-msg.el (gnus-message-replyencrypt): Default to `t'. + 2011-01-02 Lars Magne Ingebrigtsen * nnimap.el (nnimap-login): Prefer AUTH=CRAM-MD5, if it's available. diff --git a/lisp/gnus-msg.el b/lisp/gnus-msg.el index d77abfa..6dfdb4c 100644 --- a/lisp/gnus-msg.el +++ b/lisp/gnus-msg.el @@ -244,7 +244,7 @@ See also the `mml-default-sign-method' variable." :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 Thanks, -Karl [1] http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00078.html