Fix cryptcontroller handling of resolved mails
* src/cryptcontroller.cpp (CryptController::CryptController): Take signing keys from mail. (CryptController::lookup_fingerprints): Fix erase. (CryptController::lookup_fingerprints): Call resolving_done. (CryptController::resolving_done): Rename from prepare_encryption to avoid confusion. (CryptController::get_resolved_protocol): Check and obtain the protocol for a crypto operation. (CryptController::is_resolved): Add more debug info. (CryptController::resolve_keys): Handle the case in which we are already resolved.
Having a crypto operation already resolved is the case
when we split out multiple mails because of mixed protocol
or BCC.
- GnuPG-Bug-Id: T4814