Unexpected key ID format in pgp_list_pubring_command
According to the documentation, %r should expand to “a list of one or more quoted values such as email address, name, or keyid“ in the pgp_list_pubring_command invocation. But apparently, the TLD of the email address is removed, a space is added at the beginning and dots are replaced by spaces, for example test@example instead of test@example.org, or john doe@example instead of john.doe@example.org.
Minimal example:
muttrc:
set crypt_use_gpgme=no
set crypt_autoencrypt=yes
set pgp_list_pubring_command="echo '=%r=' >> /tmp/list-pubring.txt"
test.eml:
From: test@example.com
To: john.doe@example.com
Subject: Test
Test
$ mutt -F muttrc -H test.eml
$ cat /tmp/list-pubring.txt
= john doe@example=
While this still seems to work with GnuPG, it might lead to unexpected results and makes it harder to use other commands that expect the unmodified email address.