I have a question regarding encrypted mails (or more precise, mail files). I try to read those files on the server while preparing to archive them. I don't have a certificate to derypt the file and that's not the purpose, I just want to read all that's available. In case of an encrypted mail, just header data is perfect.
I generate the mail message as follows:
_message = new Limilabs.Mail.MailBuilder()
.CreateFromEmlFile(plainMimeSourceFile);
In case of my encrypted sample mail, it throws the following exception:
System.Security.Cryptography.CryptographicException: Die Nachricht mit verschachtelten Daten enthält nicht den angegebenen Empfänger.
Can anything be done to obtain a valid message and see whether the mail is encrypted or not, so in this case I would not look for attachments and/or body contents.
Thanks and best regards,
Helge