Hello! I'm trying to leverage this package to load a .msg file from a drive and read its attachments using this code. The .msg appears to load correctly (I tried removing it from my drive and got an exception, so i think its loading properly), but there are no attachments and my for loop does not run. Am I doing something wrong or is this a bug?
var msg = MsgReader.Mime.Message.Load(new FileInfo(msgFilepath));
foreach(var attachment in msg.Attachments)
{
fileList.Add(attachment.FileName);
}
Hello! I'm trying to leverage this package to load a .msg file from a drive and read its attachments using this code. The .msg appears to load correctly (I tried removing it from my drive and got an exception, so i think its loading properly), but there are no attachments and my for loop does not run. Am I doing something wrong or is this a bug?
var msg = MsgReader.Mime.Message.Load(new FileInfo(msgFilepath));
foreach(var attachment in msg.Attachments) { fileList.Add(attachment.FileName); }