Home GnuPG
Diffusion GpgOL 4b84e078d28e

Fallback to MAPI SubmitMessage if OOM Send fails

Description

Fallback to MAPI SubmitMessage if OOM Send fails

* src/common.h (ERR_SEND_FALLBACK_FAILED): New error code.
* src/windowmessages.cpp (gpgol_window_proc): Fallback to SubmitMessage
on OOM Send failure.

This is a workaround for a strange case where the write
in the send event fails. This happens for example if
office documents are attached to a mail. In that
case we can fallback to MAPI as we already do when
Outlooks internal Sign / Encrypt is selected.
Maybe we could be so bold as to always send over
MAPI.

(cherry picked from commit 8fb3524262283c77a91f7e6c615d97f426455332)