Home GnuPG
Diffusion GpgOL 63dc1d8b5c62

Do not store modified drafts if decrypt failed

Description

Do not store modified drafts if decrypt failed

* src/mailitem-events.cpp (BeforeAutoSave, Write): Do
not allow writes if decryption failed.
* src/mail.cpp (decryptedSuccessfully): New helper.

Otherwise we would re-encrypt our error message ;-)

Details

Provenance
aheineckeAuthored on Apr 11 2019, 2:36 PM
Parents
rOb0fb9bfeb01a: Allow property changes for encrypted drafts
Branches
Unknown
Tags
Unknown