Dear all, Am 07.07.2026 um 21:21 Uhr schrieb Robert Jäschke via Mutt-dev: > > The check for the $pgp_show_unusable is there in crypt_select_key(), so > > I'm not seeing right away why that isn't working for you. You may have > > to add muttdbg() statements and see what the problem is. > > I tested all variants that came to my mind and I get this result: [...] > > So it seems that $pgp_show_unusable has neither effect for GPG nor > S/MIME but the check for KEYFLAG_EXPIRED has an effect.
I finally had time to test this (and it took me some time). It works but I misunderstood how it is supposed to work. For both PGP and S/MIME, if pgp_show_unusable = yes, then a menu is shown when keys for the e-mail address exist but none (!) of them is valid. As soon as one is valid, it is automatically choosen and no menu is shown. I expected that the menu is always shown when more than one key exists, irrespective of the question whether one of them is usable or not. I hope I understand the option correctly now and I also hope that's the expected effect of the option. I am not sure whether/how this should be documented, as it's anyway rather niche. best, Robert
signature.asc
Description: PGP signature
