Home GnuPG
Diffusion GpgOL 27c65853abdc

Don't close non-crypto mails
27c65853abdcUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Don't close non-crypto mails

* src/mail.cpp (Mail::close_all_mails): Ignore non crypto mails.
Don't delete mail on error.

Closing non crypto mails is a chance for data loss as it could
have caused drafts to be discarded. The delete on error is also
not good as we don't know if the close already triggered the
unload event and so may have unloaded the mail already.

Details

Provenance
aheineckeAuthored on Nov 28 2016, 2:59 PM
Parents
rOc9775be37529: Fix race between deletion and parser access
Branches
Unknown
Tags
Unknown