Please add a Openpgp header if the user has configured a PGP key. E.g.: Openpgp: id=01234567890ABCDEF01234567890ABCDEF012345; url=https://dropbox.com/url/set/by/user.asc Enigmail (PGP for Thunderbird) already does so. https://enigmail.net https://sourceforge.net/p/enigmail/source/ci/9f642b2286a38a06982fb3dd25dcff2b276e2fdb/tree/ui/content/enigmailMsgComposeOverlay.js#l4287 Enigmail already uses the described format, with one exception. There's a LF before the url= part. I'm not sure why there is a LF and if KMail should copy that. Openpgp: id=01234567890ABCDEF01234567890ABCDEF012345; url=https://dropbox.com/url/set/by/user.asc The first field id= can be automatically generated from the PGP key the user has configured for this account. Please use the full key fingerprint, not just 8 or 16 characters. The second field url= needs a configuration option, where the user can enter a URL at which he has uploaded his key. If the user doesn't set this configuration option, the url= field shouldn't be there. (not everybody uploads his PGP key somewhere) Second part happens on receiving an E-Mail. KMail should check for the Openpgp header and offer the user to import the key from the given URL or via key-id from the public keyserver. DON'T automatically import, but ask the user first. -- I tried to manually add the header by the KMail settings->headers section. But those headers are globally for all email accounts. And I'm using multiple email accounts with different PGP keys.
Autocrypt does that. It hasn't been implemented in kmail yet. https://bugs.kde.org/show_bug.cgi?id=388036 Maybe this is a duplicate bug?
We are now supporting Autocrypt in KMail