Home GnuPG
Diffusion GpgOL 016ee4854c66

Add support to disable automatic verify/decrypt of the mail in preview
016ee4854c66Unpublished

Unpublished Commit ยท Learn More

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

Description

Add support to disable automatic verify/decrypt of the mail in preview

* src/common_indep.h: Add new flag dont_autodecrypt_preview to opt_s
* src/gpgoladdin.cpp: Add function check_auto_vd_mail which checks if
the registy value disableAutoPreviewHandling is set and updates the
global opt structure. Adds new button to the context menu to start
validation/decryption and adds mapping for the two new Ribbon
IDs ID_CMD_DECRYPT_MANUAL, ID_GET_VD_PROSPONED used by the menu entry.
* src/gpgoladdin.h: Declare new function
* src/mail.h: Add flag m_vd_prosponed to mail, declare Getter for it and
add version of decryptVerify_o with bool option doRevertOnly.
Add getCopy function
* src/mail.cpp: Init the new flag, add boolean parameter to the original
decrypt_verify_o wether to stop processing after reverting the
MessageClass and return after setting m_vd_prosponed to true.
Create a parameter less version which calls the the original version
with false. If parameter is not set set m_vd_prosponed to false.
Implement getCopy
* mailitem-events.cpp: on Open if the mail is a crypto mail and
decyption has been prosponed call decryptVerify_o.
on Read call check_auto_vd_mail and call decrypt_verify_o with the
parameter opt.dont_autodecrypt_preview.
Add logging for events BeforeAttachmentSave,BeforeCheckNames
* src/main.cpp: reading disableAutoPreviewHandling from config
* src/ribbon-callbacks.cpp: add functions get_is_vd_prosponed,
decrypt_manual used by the context menu to see if the entry should be
shown and handle the click event.
* src/ribbon-callbacks.h: declare context menu IDs & handling functions

If the new Registry value "disableAutoPreviewHandling" is set to 1
then the decryption/validation funtion/eventflow is aborted after
reseting the messageclass. The User has to either open the mail by
doubleclicking or pressing "Start decyption" in the context menu to
continue the normal eventflow.
If the key is not set or 0 the "old" behaviour is shown and emails are
auto verified/decryped when selected.

Details

Provenance
mmontkowskiAuthored on Mon, Nov 25, 10:37 AM
Parents
rO1bf6a16404db: Post release version bump
Branches
Unknown
Tags
Unknown
References
feat/no_auto_preview

Event Timeline