[PATCH 2/2] Convert pgp key lookups to use local mode addresses.
"Kevin J. McCarthy" <[email protected]> Fri, 15 May 2026 20:28:09 +0800
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
By default Mutt stores the addresses in IDNA format during
compose/send. This will cause gpg key lookups on international
domains to fail.
I have no idea how this bug has been in there for this long without
any bug reports, but this obviously needs to be done when looking up
keys.
---
crypt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/crypt.c b/crypt.c
index e12f9c44..43d7c5aa 100644
--- a/crypt.c
+++ b/crypt.c
@@ -940,6 +940,7 @@ int crypt_get_keys(HEADER *msg, char **keylist, int oppenc_mode)
last = rfc822_append(&adrlist, msg->env->to, 0);
last = rfc822_append(last ? &last : &adrlist, msg->env->cc, 0);
rfc822_append(last ? &last : &adrlist, msg->env->bcc, 0);
+ mutt_addrlist_to_local(adrlist);
if (fqdn)
rfc822_qualify(adrlist, fqdn);
--
2.54.0