Home GnuPG
Diffusion GpgOL 958432f2a072

Implement File->SaveAs for crypt mail

Description

Implement File->SaveAs for crypt mail

* src/application-events.cpp: Ignore next ItemLoad if
ignore next load is true.
* src/gpgoladdin.cpp (GpgolRibbonExtender::GetIDsOfNames): Map
overrideFileSaveAs.
(GpgolRibbonExtender::Invoke): Call override_file_save_as.
(GetCustomUI_MIME): Override FileSaveAs.
* src/gpgoladdin.h: Add a global g_ignore_next_load.
* src/ribbon-callbacks.cpp (override_file_save_as): Set the
variable and then pass the event along.
* src/ribbon-callbacks.h (override_file_save_as): Declare.

While this fix looks trivial the important line is:

parms->rgvarg[0].pvarVal->boolVal = VARIANT_FALSE;

which passes along the SaveAs command. This is new
knowledge in GpgOL.

Details

Provenance
aheineckeAuthored on Jun 7 2019, 3:23 PM
Parents
rOb0ec0feb0942: Improve some debug output
Branches
Unknown
Tags
Unknown
Tasks
T4318: GpgOl: Unable to save an encrypted message to disk [gpg4win 3.1.5]