From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 29006a6: Detect if a message can be encrypted and add an MML tag Date: Wed, 11 Apr 2018 19:57:30 +0200 Message-ID: <87tvshpqwl.fsf@len.workgroup> References: <20180404183303.27542.7640@vcs0.savannah.gnu.org> <20180404183305.17AB4202C3@vcs0.savannah.gnu.org> <87k1te567v.fsf@len.workgroup> <87a7uax90y.fsf@cassou.me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1523469432 25545 195.159.176.226 (11 Apr 2018 17:57:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2018 17:57:12 +0000 (UTC) To: Damien Cassou , emacs-devel@gnu.org, Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 11 19:57:07 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6JzU-0006N0-Sx for ged-emacs-devel@m.gmane.org; Wed, 11 Apr 2018 19:57:05 +0200 Original-Received: from localhost ([::1]:44789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6K1W-0002OT-MT for ged-emacs-devel@m.gmane.org; Wed, 11 Apr 2018 13:59:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6K0r-0002NY-VN for emacs-devel@gnu.org; Wed, 11 Apr 2018 13:58:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6K0o-0004uP-4U for emacs-devel@gnu.org; Wed, 11 Apr 2018 13:58:30 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:36423) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6K0n-0004tw-R9 for emacs-devel@gnu.org; Wed, 11 Apr 2018 13:58:26 -0400 Original-Received: from len.workgroup ([79.228.1.75]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MQ33z-1fAT0P2UmB-005GEA; Wed, 11 Apr 2018 19:58:22 +0200 In-Reply-To: <87a7uax90y.fsf@cassou.me> Mail-Followup-To: Damien Cassou , emacs-devel@gnu.org, Nicolas Petton X-Provags-ID: V03:K1:anLBe0eaXFrFr7FLQgX4ixfALAqbgayCMX62OKm03gBeJRFUCDR bImBwWIE3yzWhua5pBn3/pxLuF7uVPIJVelj6hd/cScx/VpR4hQiAmVHHGiQ6jYGP2VejSp Cfmd8IVMq9dq+/eV2djbKTSH+6Je7RdRcwJQVL1hXWtgRUellYPRlXhzdFCZoPmCSTxQmkl VunsH7dP9MbNtfqjYN/gg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Dez87MlLbPY=:x7Sunj7ljHyQZuNBavP3/G FV8BkQmY1V8ugkG/tjQXlscGq07WB0C4DJeBhhRjxdw3OjUIfG9yC67S4W5MLZv5r/m9nuqvg ltREG6bSyqCKERokpgYMyXCkMKF//2MUi8D1GuFHh/U8RblXIZMHF5TOc3MRogCUpRG8BHUhe agHcXHahQFW/YLtKNRvyWFYi3aftrXSB3s3igxw/1MdyoaTJgyYjsVgGWTI/fz4IW8yYhqUDV yTRLpcVknW9Nr28PqSj5BWR4QnWhNRL46HN5ZymFPDvj2Nt9alxxV6vpqvj7VBw05LmjR4Gi+ yghX+IPVZ1xPDn/QfYVXors4C74SRAzibYFWkFFsPHpYQ7zCxD2uqR2SM+ru6lq2vk/maNIBs LNw6YjXLfYZOfuzHw0Yje4SLvIqmob36XJh49edjqL1mX93xX924+LNLczhg8j1uxZZCF6//U PMsp8izAbOSUG+DiEdwIegTO9VsIGKd5eaOmPbSDo9H25PR/bqLfyNsKMgVfdDJbFlFaAc1Qk Mnfk2hzIqyMM9MUxi/X24EJqUJUMdZx3Mq/QIBgP58XGOsYx2XFBOKBHlxqAfeMSwyP3ARJF1 VQGQbzYrFNvnWnDHEBah2f3E+uSFNwOFpH68plhjDbPQJElmgfEZksWbdLBlVelGhw09NQqeW zz6J6eA23/e0T9lLRXGSuH2BZbvQOUtTzKnX/IuGPInJRFbcqGy5Z2fp4fPHvBxK5OMlh606/ P5Durg4beVnQPafJnW0oXuCKON0k17Jn9BIEG3qhHYqWBuf/KcMFjrdgj5XiMvkNFDLlrhmn X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224516 Archived-At: Hi Damien, * Damien Cassou [2018-04-11; 13:44]: > Gregor Zattler writes: >> run-hooks: Symbol=E2=80=99s function definition is void: >> message-add-encrypt-tag-if-can-encrypt when sending a email. > > > right. I will send a patch fixing the NEWS entry. Thanks for the report. > > >> 1) It adds the MML tags even if the recipients key is disabled. > I don't know what "the recipients key is disabled" means. A user may have a recipients public key in GnuPGs public key ring but disable it. The key is the labled as disabled in key listings and gpg does not use it for encryption. This feature comes in handy if a recipient of yours forgot his/her passphrase to the private part of the key pair or lost the private key. In this case you may disable the public key in your keyring. Then this public key is not used in the future for encryption but you are still able to verify signatures made with the corresponding private key in the past. Therefore disabled keys should not be considered with respect to the question if there are public keys for all recipients of a given message.=20 >> 2) More complicated: The UI does not provide a means to >> temporarily not use encryption (when e.g. you know your >> correspondent is on vacation and reads email on a smartphone >> without decryption facilities). The only way to send an >> unencrypted email to a recipient for whom I have the >> corresponding pub key, is to delete >> message-sign-encrypt-if-all-keys-available from message-send-hook >> before sending. > > > I agree. We could add a boolean buffer-local variable that the user > could toggle with something like `M-x > message-toggle-sign-encrypt-if-all-keys-available`. This would only > affect the current buffer. What do you think? Yes, or slightly easier for the user to handle: a command which removes the MML tags and sets this buffer local variable or even then sends the message again. Thanks for considering this. Have a nice day, Gregor