Bug 381579

Summary: add and handle Openpgp header
Product: [Applications] kmail2 Reporter: kolAflash <kolAflash>
Component: cryptoAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: carl, sknauss, sotadic_restage
Priority: NOR    
Version: 5.3.0   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:

Description kolAflash 2017-06-23 14:38:53 UTC
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.
Comment 1 Parker 2020-04-22 22:06:56 UTC
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?
Comment 2 Carl Schwan 2023-11-23 14:42:25 UTC
We are now supporting Autocrypt in KMail