Diffusion GpgOL 958432f2a072

Implement File->SaveAs for crypt mail

Authored by aheinecke on Jun 7 2019, 3:23 PM.


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
(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.