I am following the forum thread: Azure Information Protection | How to decrypt .EMLs coming from EWS API?
I am interested in knowing the steps to decrypt an encrypted office 365 email. Can you please comment on the following:
As you mentioned that one has to convert the email to .msg file, so my question is, after writing the email (i think Mime stream) to msg file, would the file persists the encryption?
What is the role of .rpmsg file in decryption, which is the attachment inside the encrypted emails, when we read the email using EWS api?
I have explored MIP Protection and File Api. So to encrypt a file using SetLabel ,we need a Sensitivity Label (from Office 365 Compliance), I think we would have to use the same label to decrypt an email, using which, the email was encrypted. Again, would it be possible to get the label from converted .msg file?
I could not find Inspect method\function in FileHandler object, which you mentioned in above mentioned forum link. Can you please suggest how to find that out?
So in summary, just wanted to know the steps to decrypt an encrypted email, using FileHandler.RemoveProtection() followed by FileHandler.CommitAsync().
Thanks