Ignore temporary recipient resolve errors
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 6 Sep 2018 08:25:40 +0000 (10:25 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 6 Sep 2018 10:00:36 +0000 (12:00 +0200)
commit5853c8e2fb99acd9355cf6d8f274a476984bc1fa
treedd8ee4dd4022f2bab45226305fbe15e068d863af
parent3db0bc6fb9474e0a746d99b63fca1613538feb04
Ignore temporary recipient resolve errors

* src/cryptocontroller.cpp (CryptController::resolve_keys):
Add unlikely error handling if recipients could not be resolved here.
* src/mail.cpp (Mail::getRecipients_o): Ignore error when
getting recipients.

--
When editing the recipients of a draft Outlook still has an
recipient object for the former recipient but does not provide
properties on it. So the address resolution fails. We can
treat the mail as having no recipients and only have a
fatal error if we can't resolve recipients in the cryptcontroller.

GnuPG-Bug-Id: T4129
(cherry picked from commit 3c0a66e402e84c0f8c5db4d2219eb8da6e5c0cac)
src/cryptcontroller.cpp
src/mail.cpp