Add Address Book integration
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 5 Sep 2018 14:24:54 +0000 (16:24 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 5 Sep 2018 14:24:54 +0000 (16:24 +0200)
commit4384758e839e816033c07e78bbec1842af076793
treed83806d8fd0ef12f86fefdb19bd39196066ee1c1
parent062279e5e69ef00d61aac6fddc9fb9ccf1201d9d
Add Address Book integration

* src/Makefile.am: Add new files.
* src/addressbook.cpp, src/addressbook.h: New. Code for
Address Book handling.
* src/gpgoladdin.cpp (GpgolRibbonExtender::GetIDsOfNames),
(GpgolRibbonExtender::Invoke),
(GetCustomUI_MIME): Add Button to configure PGP Key.
* src/mail.cpp (m_locate_in_progress): Make static
locate_in_progress a proper member.
(Mail::locateKeys_o): Trigger address book check.
(Mail::locateAllCryptoRecipients_o): Don't abort
if autoresolve is false.
* src/mail.h: Update accordingly.
* src/mailitem-events.cpp (PropertyChange): Trigger
locate even if autoresolve is off.
* src/ribbon-callbacks.cpp (open_contact_key): New.
* src/ribbon-callbacks.h: Add id and protoype.
* src/windowmessages.cpp (gpgol_window_proc): Handle
config key done.
* src/windowmessages.h (CONFIG_KEY_DONE): New.

--
We do the now usual dance with an external process and
windowmessage callback to configure a PGP Key in the
Address book.
This key or keys override any other key and will
be used regardless of validity or user ids.
This should allow a power user or administrator to centrally
manage keys in a shared address book and enable such
use cases as delegateing one mail address to
a different key.

GnuPG-Bug-Id: T4122
src/Makefile.am
src/addressbook.cpp [new file with mode: 0644]
src/addressbook.h [new file with mode: 0644]
src/gpgoladdin.cpp
src/mail.cpp
src/mail.h
src/mailitem-events.cpp
src/ribbon-callbacks.cpp
src/ribbon-callbacks.h
src/windowmessages.cpp
src/windowmessages.h