Home GnuPG
Diffusion GpgOL 3674e1868412

Do not send an item with encryption errors
3674e1868412Unpublished

Unpublished Commit · Learn More

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

Description

Do not send an item with encryption errors

* mailitem-events.cpp (MailItemEvents::Invoke): Handle crypto errors.
  (request_send): New. Sleep for 50ms and then request a send.
  (sign_encrypt_item): Renamed from handle_after_write. Remove
  not working context window lookup. Return errors.
  (handle_before_read): Remove context window lookup.

The first send event is not canceled. We then encrypt / sign
the message in the AfterWrite event and then use Windowmessages
to request a Send again in the main thread. We need to yield
to the main thread for a bit so that it can do some stuff that
allows us to trigger Send again. Otherwise we will get an error
that calling Send is not allowed in this context.

Details

Provenance
aheineckeAuthored on Sep 24 2015, 6:37 PM
Parents
rO094b038883f8: Add window message helper code.
Branches
Unknown
Tags
Unknown