Improve recipient handling
* src/cryptcontroller.cpp (CryptController::CryptController), src/keycache.cpp (KeyCache::isMailResolvable), src/wks-helper.cpp (WKSHelper::handle_confirmation_read): Update call to mail->getRecipients. * src/mail.h (Mail::getRecipients): Renamed to Mail::getCachedRecipients. * src/mail.cpp (Mail::getRecipients_o): Adapt to vector. Add error handling. (Mail::updateOOMData_o): Use vector directly. * src/oomhelp.cpp, src/oomhelp.h (get_oom_recipients): Use vector and provide an error.
Downstream we already used the recipients mostly as a
vector anyway to avoid the memory mangement hassle.
This gives us more flexibility.
Additionally we now report an error for the case
from:
- GnuPG-Bug-Id: T4065