unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Giovanni Biscuolo <g@xelera.eu>
To: Pierre Langlois <pierre.langlois@gmx.com>
Cc: guix-devel@gnu.org
Subject: Re: Signing emails with Emacs 27.1
Date: Fri, 04 Sep 2020 19:16:26 +0200	[thread overview]
Message-ID: <874kod1mz9.fsf@roquette.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87lfht8ytb.fsf@gmx.com>

[-- Attachment #1: Type: text/plain, Size: 2287 bytes --]

Hello Pierre,

thanks to your recent commit (852ae64e11 gnu: Remove emacs-seq package.)
I was able to upgrade to emacs 27.1: kudos \O/ !

I'm using notmuch as MUA and experienced this signing problem too:

--8<---------------cut here---------------start------------->8---

mml-secure-epg-sign: Couldn’t find any signer names; try setting `mml-secure-smime-sign-with-sender'.

--8<---------------cut here---------------end--------------->8---

when trying to sign **with openpgp**, non with S/MIME (aka I use the #secure
method=pgpmime mode=sign" tag)

Pierre Langlois <pierre.langlois@gmx.com> writes:

[...]

> Right, it works with these variables set:
>
>     (setq mml-secure-openpgp-signers '("KEYID"))

No need to explicitly set this if:

>     (setq mml-secure-opengpg-sign-with-sender t)
                           ^ s/gpg/pgp

I set (setq mml-secure-openpgp-sign-with-sender t)

[...]

> I'm not sure what's broken, this used to "just work" by default without
> having to tell emacs where to find the signer key

This used to just work by default for me too, probably it's due a change
in default behaviour of message mode [1]:

--8<---------------cut here---------------start------------->8---

*** 'mml-secure-openpgp-sign-with-sender' sets also "gpg --sender".
When 'mml-secure-openpgp-sign-with-sender' is non-nil, message sender's
email address (in addition to its old behavior) will also be used to
set gpg's "--sender email@domain" option.

The option is useful for two reasons when verifying the signature:

 1. GnuPG's TOFU statistics are updated for the specific user id
    (email) only.  See gpg(1) man page about "--sender".

 2. GnuPG's "--auto-key-retrieve" functionality can use WKD (web key
    directory) method for finding the signer's key.  You need GnuPG
    2.2.17 to fully benefit from this feature.  See gpg(1) man page for
    "--auto-key-retrieve".

--8<---------------cut here---------------end--------------->8---

I still do not understand why the "old behaviour" doesn't work with 27.1
(with 26.3 worked) but you have found the solution :-)


Thanks! Gio'


[1] https://www.gnu.org/savannah-checkouts/gnu/emacs/news/NEWS.27.1

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

  parent reply	other threads:[~2020-09-04 17:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-01 10:52 Hello, new committer here! Pierre Langlois
2020-09-01 12:11 ` Signing emails with mu4e (was Re: Hello, new committer here!) Pierre Langlois
2020-09-01 12:29   ` Pierre Langlois
2020-09-01 13:06     ` Efraim Flashner
2020-09-01 13:35     ` Pierre Neidhardt
2020-09-01 23:00       ` Amin Bandali
2020-09-02 10:15         ` Pierre Langlois
2020-09-04 17:16     ` Giovanni Biscuolo [this message]
2020-09-04 17:47       ` Signing emails with Emacs 27.1 Pierre Langlois
2020-09-07  9:19 ` Hello, new committer here! Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874kod1mz9.fsf@roquette.i-did-not-set--mail-host-address--so-tickle-me \
    --to=g@xelera.eu \
    --cc=guix-devel@gnu.org \
    --cc=pierre.langlois@gmx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).