Home GnuPG
Diffusion GpgOL 07c1895e7857

Improve recipient handling

Description

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:

Details

Provenance
aheineckeAuthored on Jul 10 2018, 10:50 AM
Parents
rOc29f79c0d24c: Use unique ptr for parser context
Branches
Unknown
Tags
Unknown
Tasks
T4065: GpgOL: Outlook contact groups are not supported