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:
- GnuPG-Bug-Id: T3999