Bug 3815 - Present available secret GPG keys for selection in account preferences
Summary: Present available secret GPG keys for selection in account preferences
Status: NEW
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: Plugins/Privacy/PGP (show other bugs)
Version: 3.15.1
Hardware: All All
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2017-04-24 19:07 CEST by Andrej Kacian
Modified: 2018-07-21 10:38 CEST (History)
0 users

See Also:


Attachments
In account prefs, show available secret keys in a combo box. v1 (10.03 KB, patch)
2018-07-18 21:34 CEST, Andrej Kacian
no flags Details | Diff
In account prefs, show available secret keys in a combo box. v2 (12.67 KB, patch)
2018-07-21 10:38 CEST, Andrej Kacian
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Kacian 2017-04-24 19:07:11 CEST
GPGME can be used to get secret key IDs from the keyring, and a GtkComboBoxEntry could be used to make them available for selection.

With GtkComboBoxEntry, user can still type the key ID directly.
Comment 1 Ricardo Mones 2017-04-24 21:19:49 CEST
      / )
     / /
----' (_____
        ((__)
        ((___)
        ((__)
----.___((_)
Comment 2 Andrej Kacian 2018-07-18 21:34:13 CEST
Created attachment 1892 [details]
In account prefs, show available secret keys in a combo box. v1

Ready for testing and suggestions - primarily about what else to display for each key in combobox selection. I'm thinking at least key expiry date.
Comment 3 Andrej Kacian 2018-07-21 10:38:32 CEST
Created attachment 1898 [details]
In account prefs, show available secret keys in a combo box. v2

Changes from v1:
- removed extraneous newlines in combobox options
- do not include revoked, disabled or invalid keys in combobox options
- use long (64-bit) key ID for OpenPGP keys in combobox options's user visible string
- include expiration date in the user visible string
- if user enters a custom long or short key ID, select matching key (if any) from among combobox options when focus leaves the entry box