I have some signed and/or encrypted (S/MIME) emails in MSG files and PSTs which I would like to open and read as MapiMessage instances. I have access to PFX files (certificates and private keys) used to sign/encrypt the emails.
Are there examples or information about how to achieve this? There is some basic information at Managing Outlook Messages|Documentation and Managing Outlook Messages|Documentation but that doesn’t cover using the MapiMessage class and doesn’t seem to cover Signed emails.
For example, from some experimentation it seems to me like the MailMessage.Decrypt(X509Certificate2) method is used to decrypt encrypted MailMessage instances, and the MailMessage.Decrypt() method is used to “decrypt” signed instances. Is that correct?
Converting from one of the resulting MailMessage instances to a MapiMessage using MapiMessage.FromMailMessage(message) seems to result in a MapiMessage that is missing information though, such as the Body.
Thanks