On Fri, Sep 18, 2026 at 11:06:29PM +0200, Robert Jäschke via Mutt-dev wrote:
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.
The key selection is rather underdocumented, but the behavior is that the menu is skipped if there is a single strong match on a valid key. If there are no strong matches against a valid key, or more than one, then the menu is shown.
The $pgp_show_unusable then influences what the menu shows. But it doesn't affect whether the menu is shown or now.
I hope that helps. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature
