Hello envs pubnixers,
I've created a solution for fetching GPG/OpenGPG keys from WKD or the hkps://keys.openpgp.org keyserver from within Mutt with two macros using the "abook" address book TUI program.
It's still a little complicated to set up but it *should* work if set up correctly. Maybe I'll create a script to automatically set it all up automatically, if there is real interest.
With the new macros and a little script, you should be able to add a new address from an email with the '<SHIFT>+a' key and refresh/add new public GPG keys from addresses in the address book with the '<CTRL>+k' key. You can then query the address book with '<SHIFT>+q' in Mutt or by pressing '<TAB>' in NeoMutt when asked for an address. You can also send email directly out of the "abook" TUI with the 'm' key. The GPG menu can be accessed with the 'p' key in the composer of (Neo)Mutt.
If GnuPG is set up correctly (description in the README.md file of the repo), you should be able to sign/encrypt/decrypt/verify from inside Mutt in the envs shell. There is also a description for setting up NeoMutt, which I'm using locally at home.
You can find the git repository with further explanations on how to set it up here: https://git.envs.net/dan/mutt-abook-gpg
Remember that the envs.net shell uses "abook v0.6.1", so you have to source the '~/.abook/abook-before-v0.6.2.mutt.rc' file in your '~/.muttrc'. You can see my full '~/.muttrc' here: https://paste.rs/37cEM.sh
I would be happy, if you would try it out and give some feedback. Please give information, when there are problems, if something is unclear or about anything concerning this little project.
Make sure, you read and fully understand the whole explanations in the README.md file. If something is unclear, answer to this post on the mailing list, send a private email to me or open an issue on the repository.
Happy hacking! ~dan