Diffusion GpgOL 9f132ff7cbc2

Prepare keycache for autoencryption

Authored by aheinecke on Jun 20 2018, 1:56 PM.


Prepare keycache for autoencryption

* src/keycache.cpp,
* src/mail.cpp, src/mail.h (set_crypto_selected_manually),
(increment_locate_count, decrement_locate_count): New stateholders.
* src/keycache.cpp (LocateArgs): Argument helper to carry mail.
(startLocate, startLocateSecret): Add mail argument and use it.
* src/keycache.h: Update accordingly.

This keeps track of how many locate threads are running
on a mail. So that we can handle the state where
all locates for a mail are done.

This prepares: