Bug 3815

Summary: Present available secret GPG keys for selection in account preferences
Product: Claws Mail (GTK 2) Reporter: Andrej Kacian <ticho>
Component: Plugins/Privacy/PGPAssignee: users
Status: NEW ---    
Severity: enhancement    
Priority: P3    
Version: 3.15.1   
Hardware: All   
OS: All   
Attachments:
Description Flags
In account prefs, show available secret keys in a combo box. v1
none
In account prefs, show available secret keys in a combo box. v2 none

Description Andrej Kacian 2017-04-24 19: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 21:19:49 UTC
      / )
     / /
----' (_____
        ((__)
        ((___)
        ((__)
----.___((_)
Comment 2 Andrej Kacian 2018-07-18 21: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 10: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