Diffusion GpgOL 15ba0e600979

Fix cryptcontroller handling of resolved mails

Authored by aheinecke on Jan 31 2020, 12:03 PM.

Description

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.

Details