Home GnuPG
Diffusion GpgOL d456bff70871

Add mail revert implementation that works on OOM
d456bff70871Unpublished

Unpublished Commit · Learn More

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

Description

Add mail revert implementation that works on OOM

* src/revert.cpp (gpgol_mailitem_revert): Revert mail in OOM.
* src/revert.h: Add prototype.

Using OOM appeared to be necessary. At least I have not found
a way to modify the Body through MAPI in a way that it survived
the write event. It appeared that during the Write event the
OOM Body is synced back to mapi. Same for the attachment model
in OOM. Some weirdeness there. Now we use OOM as much as possible.

There is some duplication with the old code but I didn't want
to touch the old code to aviod regressions. Although I doubt
very much that the old code works correctly.

For now the code returns an error for all messages apart
from PGP Message.

Details

Provenance
aheineckeAuthored on Dec 1 2015, 3:21 PM
Parents
rOd6c6d56f4978: Add OOM PropertyAccessor helper methods
Branches
Unknown
Tags
Unknown