Hi,
I’m facing an issue when unpack an eml file.
The eml seems to have only one attachment file (named Cablage_NEO_V2.pdf).
But, when unpacking, I find 2 attachments :
- file Cablage_NEO_V2.pdf
- file grad.gif
Here’s the code that I run :
var emlFilename = @"C:\Test\emlFile.eml";
using (var stream = new FileStream(emlFilename, FileMode.Open))
{
var loadOptions = new EmlLoadOptions { PreserveTnefAttachments = false };
using (var message = MailMessage.Load(stream, loadOptions))
{
Console.Out.WriteLine($"{message.Attachments.Count} attachment(s) found in file '{Path.GetFileName(emlFilename)}'");
message.Attachments.ToList().ForEach((att) => Console.Out.WriteLine($"---> Attachment {att.Name}"));
}
}
Can someone please tell me why the file grad.gif is processed like an attachement despite of the fact that it hasn’t the attachment content-description value (neither the inline one…)
PS : I’m using Apose.Email v.19.8.0.0
Regards,
Thomas Nk.emlFile.zip (439.5 KB)