Search code examples
c++encryptioncomatlmapi

How to decrypt a MAPI IMessage



I have a MAPI IMessage object from a third party library, what i need is to decrypt the message (assuming it is smime), producing another decrypted MAPI object (or overriding the existing one). please recommend a way to do so.
One way to do it, is by using IConverterSession converting MAPI to MIME string and then doing the decryption in whatever way using that mime, and then converting back the decrypted mime into MAPI IMessage. but i am looking for another way possible without this conversion, using MAPI Imessage itself.
Thanks in advance.


Solution

  • How was the message encrypted? Messages encrypted/signed by Outlook store their (encrypt3d) data in a p7m attachment. You can extract and decrypt it.