Page MenuHome GnuPG

GpgOL: Handle GPO settings for readAsPlain
Testing, HighPublic

Description

To check if we should use the plaintext body modification API in Outlook or not we use:

HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options\Mail "ReadAsPlain"

This is incomplete and might cause users not to be able to view the mail content as our modifications to the HTML Body are rejected even though we should handle this and fall back to plaintext in case of error. This part needs to be checked again if the error handling somehow regressed in recent versions.

Additionally we need to at least check:
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\options\mail "readasplain"

I am also pretty sure that we should additionally check HKLM in case the HKCU value is not set.

Details

Version
master

Event Timeline

aheinecke created this task.
aheinecke set Version to master.
aheinecke added a project: Restricted Project.
aheinecke changed the task status from Open to Testing.Thu, Nov 11, 2:09 PM

Tested both with the policies key and with the normal key and with HKLM fallback. Works as expected. There was also an issue where the error handling in case setting the HTML body failed did no longer work, probably since the verification preview changes. This was fixed with 76b43345cdd3e932dae7b677e5c021ca52191f8e