Disable async encryption for mails with attachs
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 13 Sep 2018 09:07:56 +0000 (11:07 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 13 Sep 2018 09:07:56 +0000 (11:07 +0200)
commit78d93a44aaccd10ccb97c51fb3083f1dadfaab4b
tree9bf209ae4188b66271358038901b5666a9bb08d1
parentbdc87bbcff9345e142c1b645cce7bc76b52cee63
Disable async encryption for mails with attachs

* src/mail.cpp (check_inline_response): Disable async crypt
if mail has attachments.
* src/windowmessage.cpp (CRYPTO_DONE): Clarify that the
fallback to MAPI is a very very last resort.

--
This commit sacrifices usability (async encryption) for
stability. We now use the old sync crypt code when attachments
are added to a crypto mail to avoid errors that occured
for some attachments.
As there does not appear to be a detectable pattern or
value for which attachments the write in the second send
fails we block async crypt for all attachments.

GnuPG-Bug-Id: T4131
src/mail.cpp
src/windowmessages.cpp