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 (GTK 2)
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 17:07 UTC by Andrej Kacian
Modified: 2018-07-21 08:38 UTC (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 19:34 UTC, 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 08:38 UTC, Andrej Kacian
no flags Details | Diff

Description Andrej Kacian 2017-04-24 17:07:11 UTC
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 19:19:49 UTC
      / )
     / /
----' (_____
        ((__)
        ((___)
        ((__)
----.___((_)
Comment 2 Andrej Kacian 2018-07-18 19:34:13 UTC
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 08:38:32 UTC
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

Note You need to log in before you can comment on or make changes to this bug.