I have an issue where I am decrypting and removing a signature from an email in order to process the attachments, when I remove the signature all the images from the email are added to the attachments collection and the sample code (Differentiating between Inline and Regular Attachments)
fails to identify the images as inline attachments.
var message = MailMessage.Load(memStream);
if (message.IsEncrypted)
{
message = message.Decrypt();
}
if (message.IsSigned)
{
message.CheckSignature();
message = message.RemoveSignature();
}
var mapi = MapiMessage.FromMailMessage(message);
ProcessEmail(mapi);