Diffusion GpgOL 60b331568188

Simplify isMailResolvable and accept keygen

Authored by aheinecke on Jun 21 2018, 11:22 AM.

Description

Simplify isMailResolvable and accept keygen

* src/keycache.cpp (isMailResolvable): Return bool. Accept
potential keygen.
* src/keycache.h: Update accordingly.
* src/mail.cpp (Mail::autoresolve_check_s): Update for new API.

This inly check for a self key for SMIME. For OpenPGP we can
generate a key.