From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#40118: 27.0.90; Signing emails with gpg Date: Thu, 16 Apr 2020 11:44:51 +0200 Message-ID: References: <87tv2lhg2p.fsf@skimble.plus.com> <87d08a9vb9.fsf@gmail.com> <83mu7cg0k8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="36855"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stepnem@gmail.com, 40118@debbugs.gnu.org, boudiccas@skimble.plus.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 16 11:46:45 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jP16a-0009LY-BE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Apr 2020 11:46:44 +0200 Original-Received: from localhost ([::1]:60078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP16P-0005va-Ij for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Apr 2020 05:46:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57497) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP15v-0005uj-Nd for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 05:46:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jP15u-0004TO-Ku for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 05:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54259) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jP15u-0004TD-Hj for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 05:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jP15u-0004c9-FK for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 05:46:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87tv2lhg2p.fsf@skimble.plus.com> Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Apr 2020 09:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40118 X-GNU-PR-Package: emacs Original-Received: via spool by 40118-submit@debbugs.gnu.org id=B40118.158703030217658 (code B ref 40118); Thu, 16 Apr 2020 09:46:02 +0000 Original-Received: (at 40118) by debbugs.gnu.org; 16 Apr 2020 09:45:02 +0000 Original-Received: from localhost ([127.0.0.1]:37572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP14w-0004aT-43 for submit@debbugs.gnu.org; Thu, 16 Apr 2020 05:45:02 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:38188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP14u-0004Zw-D5 for 40118@debbugs.gnu.org; Thu, 16 Apr 2020 05:45:00 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id k11so4052048wrp.5 for <40118@debbugs.gnu.org>; Thu, 16 Apr 2020 02:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:mime-version :content-transfer-encoding; bh=Py9i8jdnJ3zp+4b2Gyuy5/Ho93MX0vSPKo7kdvfF8kE=; b=epA8BEvbkSn4gDk5LgtGjtG6LcjMKp6j8IsVTMhw1W2ibXwcDTlkzm680D3ttKQGcp Pc7ds32dMYe8XnG2EhSwGBQdTkSXi++rLXpqzGtep20TSfn3+uRxHf3RbKDBZ6UP1rhR YqWMNDlqTswEQgukdAdjCo3W6xUGoDAzpdSZ7yR06LMahrEjq63nlamQHhJlm0SNkVcr k3RuVVL5GeebinTaynGKWlEVOoi/cNfzXA/LkgRovPSVurHcRlJapfihe6L37zW5MkQ2 UDVy4qsZAvMLcrw1qU/i1MAnLS5P06HwHJpQd4tzcjZDA9ou57ytR7hUyMQkiOW7lXVA SLTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :mime-version:content-transfer-encoding; bh=Py9i8jdnJ3zp+4b2Gyuy5/Ho93MX0vSPKo7kdvfF8kE=; b=rJMzrGLCNpS+mHTYRH2Jq3U1AuKffywtr/EXxy+lO2SmM2xfxrubPGGZwwodyyeO6W oB52Iw83cakn3jPBMW3afkmCTUQObVaneYqdh1vZSADMaf3X3HvFqGfJQ/nuzmN/mndG kkiRmcX9qLtQx2RuZoYYGllBnK2i8bHLsTBBlqJmQhCTetrbQ214udwKf2T3yM50E0KX dNiLLYKjeGQJgSO8PeBDK0McAkJ3aLQHQc3YDZc0GaakUQ0L2ifNTLHTLXbgdnNQVZRO TphBI6Z7zjJI/Q2y0fiIiJK9SORw77Eb1i7RpCUQDq9Ah7MmbsXybxDhNhpqhb1WxYvh YsAQ== X-Gm-Message-State: AGi0PubxJn4bRlahrAFC95rLQIeX4MvNM6J+03A3WJH3L1Sv7vCOGlPH YbmGdLZKz6jFdmuWL2vMig4= X-Google-Smtp-Source: APiQypKTQC8P89PA5SBbc05Vpy7u/3UujzRBLxZ/Em+6gxAZm+w67J7fB/ENGbc88ipnsXRhdzXpEg== X-Received: by 2002:a5d:400f:: with SMTP id n15mr33772187wrp.344.1587030293011; Thu, 16 Apr 2020 02:44:53 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:384e:c682:f3e3:6663]) by smtp.gmail.com with ESMTPSA id s12sm1469320wmc.7.2020.04.16.02.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2020 02:44:52 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178440 Archived-At: >>>>> On Wed, 15 Apr 2020 19:45:27 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Date: Wed, 15 Apr 2020 18:37:51 +0200 >> Cc: 40118@debbugs.gnu.org, Sharon Kimble >>=20 >> mml-secure-smime-sign-with sender has no effect when signing with pg= p, >> you'd need to set mml-secure-openpgp-sign-with-sender. >>=20 >> I can adjust the message easily enough, but I honestly think both of >> those variables should default to t, not nil. And I think we should = do >> that in emacs-27 [1]. Eli? Eli> I don't think I understand the issue well enough to have an opinio= n on Eli> its merits and demerits. In emacs-26, mml-secure-epg-sign could specify that a message should be signed with a key based on the sender=CA=BCs email address. If the variable governing that was nil, it was left to gpg to figure out the key to use. Normally that means gpg uses its default key. In emacs-27, mml-secure-epg-sign now checks explicitly whether that variable is nil, and refuses to continue. With an error message that in at least 50% of the cases points the user to the wrong user option. This is a regression from emacs-26. Fixing the error message is easy. I=CA=BCm proposing that by default the sender=CA=BCs email address is used to determine the key to use, since that=CA=BCs what almost everyone will want. People who don=CA=BCt want that= can control the behaviour by either adding keys to 'mml-secure-openpgp-signers' or by setting 'mm-sign-option' to 'guided. Robert