is there any way, I could convert an opaque signed, but not encrypted, .msg file to eml file, while preserving the signature?
Here’s my current code, which currently works for clear signed emails, but not for opaque signed ones:
MailMessage msgMessage = MailMessage.Load(fileStream, MailMessageLoadOptions.DefaultMsg);
MemoryStream emlStream = new MemoryStream();
msgMessage.Save(“c:\test.eml”, new EmlSaveOptions(MailMessageSaveType.EmlFormat)
PreserveSignedContent = true,
//PreserveOriginalBoundaries = true,
This saves the file, but does not preserve the signature. Setting PreserveOriginalBoundaries to true causes Aspose to throw an exception. I’ve attached my test file.