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