D22824: Add support to publish OpenPGP public keys using WKS

Felix Tiede noreply at phabricator.kde.org
Tue Jul 30 12:13:47 BST 2019


ftiede created this revision.
ftiede added a reviewer: KDE PIM: Kleopatra.
ftiede added a project: VDG.
Herald added a project: KDE PIM.
Herald added a subscriber: kde-pim.
ftiede requested review of this revision.

REVISION SUMMARY
  Some mail providers offer a Web Key Directory for their users to publish OpenPGP public keys. This is sometimes amended by the Web Key Service, which offers users an easy and confirmed method to publish and update their OpenPGP public keys in the provider's WKD.
  
  KMail can already handle most of the mail handshake but there's to my knowledge no way to initiate the process from within KMail. Thunderbird's Enigmail extension supports the initial mail and this adds the same feature in a similar manner to Kleopatra, utilising GnuPG and Akonadi to create and send the mail required to initiate the WKS key publishing process.
  
  It adds another File and context menu entry for Export to Provider, utilising the same icon as "Export to Server", which should be reviewed for following GUI guidelines. Also, new messages added should be reviewed for proper language.

TEST PLAN
  1. Create or have a OpenPGP key pair whose primary user ID uses a mail provider which provides WKS, GnuPG may be asked for test addresses <https://wiki.gnupg.org/WKS#Future_work> for this part.
  2. Select the key in Kleopatra's main window and select "Export to provider" from either context or File menu.
  3. A message should pop up informing about consequences and the further process of publishing a key this way and asking for confirmation to proceed.
  
  - If the mail provider supports WKS, a mail to the provider is generated and, if possible, sent, using the Akonadi mail transport configured for the primary user ID mail address and a message box notifying the user of the successful export should appear.
    - If the mail transfer was successful, the usual "mail sent" popup should appear, followed by a WKS confirmation request in the user's inbox. KMail does not keep a copy of this mail in Sent.
    - If the mail was stalled for any reason, the initial mail should appear in the user's Outbox folder.
  - If the mail provider does not support WKS or there is no mail transport configured for the key's primary user ID mail address, the process will stop with an appropriate error message.
  
  If the provider's WKS has sent a confirmation request mail with the selected key, the process is further handled by KMail and Kleopatra's involvement is no longer required.

REPOSITORY
  R168 Kleopatra

REVISION DETAIL
  https://phabricator.kde.org/D22824

AFFECTED FILES
  CMakeLists.txt
  src/CMakeLists.txt
  src/commands/exportopenpgpcerttoprovidercommand.cpp
  src/commands/exportopenpgpcerttoprovidercommand.h
  src/kleopatra.rc
  src/utils/gnupg-helper.cpp
  src/utils/gnupg-helper.h
  src/view/keylistcontroller.cpp

To: ftiede, #kde_pim_kleopatra
Cc: kde-pim, cblack, arvidhansson, konkinartem, ian, jguidon, hannahk, Ghost6, jraleigh, fbampaloukas, squeakypancakes, alexde, IohannesPetros, GB_2, trickyricky26, mglb, crozbo, ndavis, firef, skadinna, dvasin, aaronhoneycutt, rodsevich, winterz, vkrause, mlaurent, mbohlender, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20190730/11e20e2d/attachment.html>


More information about the kde-pim mailing list