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.help Subject: Re: How to get a pinentry box to digitally sign all emails Date: Wed, 22 Apr 2020 20:03:47 +0200 Message-ID: References: <874ktk7r5s.fsf@skimble.plus.com> <875zdrzaeo.fsf@russet.org.uk> 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="63633"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: Phillip Lord Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 22 20:11:17 2020 Return-path: Envelope-to: geh-help-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 1jRJq9-000GUT-3q for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 22 Apr 2020 20:11:17 +0200 Original-Received: from localhost ([::1]:55546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRJq8-0007D4-60 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 22 Apr 2020 14:11:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45152) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRJj3-0003Is-JU for help-gnu-emacs@gnu.org; Wed, 22 Apr 2020 14:03:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRJj0-0005TA-Ta for help-gnu-emacs@gnu.org; Wed, 22 Apr 2020 14:03:56 -0400 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:40975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRJj0-0005Oi-F0 for help-gnu-emacs@gnu.org; Wed, 22 Apr 2020 14:03:54 -0400 Original-Received: by mail-wr1-x433.google.com with SMTP id g13so3563854wrb.8 for ; Wed, 22 Apr 2020 11:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=NTB5BB2szBHaeqqhw1y4TRD4MCJemtq6b3Dt1puWF4Y=; b=m1f3KVbvidhQsq72tYwAGrFqK6qIasO7FIm6m1YMULQbjUfL8y7hRSPba2MyWE9xBu EDdn93tXFdDqMmdWKsoczXSecA3+tQfAPAiHlWoE4eaT02rUXDt1OCmqQvbC23ywa4mB bBGvQXSY+vuZHM+e5ssJCfskCD5JvNc34TKkt6Dmlocj9K2ySNtk1BP4LT+Xcy/SBmIm Y5vfSqCOD4Pf96YR/okAnhRwfchkfcPIm1pMSvpn8Y/XzrVqLCi6GblwaWdKf+rQh+AX +IOFiWfe87+/Ro1/LRp6my3l55fTMRBAc6NgvaYLLJQxaOmfYuH3TcMwAfFC8COxvgtV fvtw== 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 :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=NTB5BB2szBHaeqqhw1y4TRD4MCJemtq6b3Dt1puWF4Y=; b=hMe9vnZLwY4nPhjD5SOURucKYSqt2JzHASgKpYZdliqqadELmpVJAyoD6AoyyAgjPi dio9tpIjSndijm9NZ7RxZgrmwEsdngEBxV3Jl4a2JVvfBgBODXzgAWawWwrGvBApSeAm 5sbsP1bE1DCIuzQ9eb2WBiP6eOKrjYZM0Aa/YUFUhu94jXB4ztYahg9Zs3cRE6T03j61 gP6eIWExZLc/yvGsfBYRjPyuikg+k/rDBX3S9NZzEMe0u6Ap/4iVp728JjehfLNoKfzW 348LLY88NIK/BxkBCmwDkXPsUlQmxv8WhwEDN62rQ1iA41EAyfraxzDeuYvJKWuKpfRB oYNQ== X-Gm-Message-State: AGi0PuaGgsJqUYYKhEU9tfpsqyLXh8UMHzHROV/ZrJ5AkaQeVs9Hch2f D4mzCMvGB0ljN9MxahDSITC+5m/dHgY= X-Google-Smtp-Source: APiQypI8ZLx9IHJxCIutv4dhkxKGx1edcgc7dkLOCNU/IE5eMpg4rQMWraeKgTE/iXPFQqDU1k1h+w== X-Received: by 2002:adf:916f:: with SMTP id j102mr220700wrj.335.1587578630890; Wed, 22 Apr 2020 11:03:50 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:f038:efd9:aa5f:7833]) by smtp.gmail.com with ESMTPSA id a187sm33243wmh.40.2020.04.22.11.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2020 11:03:50 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <875zdrzaeo.fsf@russet.org.uk> (Phillip Lord's message of "Wed, 22 Apr 2020 18:40:31 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=rpluim@gmail.com; helo=mail-wr1-x433.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::433 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122920 Archived-At: >>>>> On Wed, 22 Apr 2020 18:40:31 +0100, Phillip Lord said: Phillip> It seems to be the logic associated with finding the signing k= ey. Phillip> Setting: Phillip> (setq mm-sign-option 'guided) Phillip> lets the whole thing work, but you have to use the dialog (whi= ch has a Phillip> truely horrible UI) that pops up and tell it to use the defaul= t key Phillip> everytime. Phillip> I tried to debug this, but for no reason that I can fathom ede= bug seems Phillip> to fail on the key (pun!) functions. My mind must be twisted, the code seems obvious enough :-) Either (setq mml-secure-openpgp-sign-with-sender t mml-secure-smime-sign-with-sender t) Then the sender of the message will be used to select the signing key autom= atically. Or (untested) (setq mml-secure-openpgp-signers "" mml-secure-smime-signers "") (obviously you don=CA=BCt need to set both the openpgp and smime variants if you=CA=BCre only using one). Allegedly you can use Key IDs rather than email addresses. Phillip> Robert, Sharon could you try the "mm-sign-option". I am curiou= s to see Phillip> if this is the same bug. Yes, it is. I don=CA=BCt set mm-sign-option, I use mml-secure-openpgp-sign-with-sender. Robert