From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85002 Path: news.gmane.org!not-for-mail From: Jens Lechtenboerger Newsgroups: gmane.emacs.gnus.general Subject: Re: Default encryption for Message Date: Wed, 24 Sep 2014 15:59:24 +0200 Message-ID: <86r3z15dc3.fsf@informationelle-selbstbestimmung-im-internet.de> References: <86wq8xffpv.fsf@informationelle-selbstbestimmung-im-internet.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1411567195 11716 80.91.229.3 (24 Sep 2014 13:59:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2014 13:59:55 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33246@lists.math.uh.edu Wed Sep 24 15:59:46 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XWn6d-0004lm-HU for ding-account@gmane.org; Wed, 24 Sep 2014 15:59:43 +0200 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 1XWn6Y-00058K-Qu; Wed, 24 Sep 2014 08:59:38 -0500 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 1XWn6X-000588-Kp for ding@lists.math.uh.edu; Wed, 24 Sep 2014 08:59:37 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XWn6W-0003hU-92 for ding@lists.math.uh.edu; Wed, 24 Sep 2014 08:59:37 -0500 Original-Received: from mx1.mailbox.org ([80.241.60.212]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XWn6T-0008EY-NB for ding@gnus.org; Wed, 24 Sep 2014 15:59:33 +0200 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id DFF3546058 for ; Wed, 24 Sep 2014 15:59:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) (using TLS with cipher AES256-GCM-SHA384) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTPS id oMKQKuIFH2DY for ; Wed, 24 Sep 2014 15:59:25 +0200 (CEST) OpenPGP: id=0xA142FD84; url=http://www.informationelle-selbstbestimmung-im-internet.de/A142FD84.asc Mail-Followup-To: ding@gnus.org In-Reply-To: (Ted Zlatanov's message of "Tue, 23 Sep 2014 16:02:00 -0400") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3.50 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85002 Archived-At: On 2014-09-23, Ted Zlatanov wrote: > JL> 4. mm-encrypt-option > ... > JL> Clearly, my [solution] is a hack. A better approach might be a third > JL> value for mm-encrypt-option, say guided-if-multiple, to only enter > JL> guided mode if multiple keys are available. That would require, > JL> however, to modify code in mml1991.el, mml2015.el, and mml-smime.el, > JL> which brings me to the next point. > > Ask once, then save the preference in a Customize-controlled variable. Before this was saved permanently the user should probably be asked, as there might be addresses where the =E2=80=9Ccorrect=E2=80=9D key depends= on the message=E2=80=99s context. Also, an implementation of such a feature requires more code. Currently, I=E2=80=99m setting =E2=80=9Cguided=E2=80=9D on a per message ba= sis to reuse the code around epa-select-keys in the three files mentioned above. There, epa-select-keys is invoked for *all* recipients of the message, not just those with multiple keys. For your proposal, the code in those three files would need to be changed to iterate over the recipients and invoke epa-select-keys for each recipient with multiple keys. Another reason for refactoring. Best wishes Jens