Sicos1977 / MSGReader

C# Outlook MSG file reader without the need for Outlook
http://sicos1977.github.io/MSGReader
MIT License
490 stars 168 forks source link

MSGReader only retrieves some htmlbody #228

Closed SudD3v closed 3 years ago

SudD3v commented 4 years ago

Hi, i've previously opened the issue https://github.com/Sicos1977/MSGReader/issues/223 after your answer and updating my dependency to the newest version (3.7.31) i was able to read the .msg file I attached and another one. Meanwhile i found out that not all the files I'm trying to retrieve the html from are readable. I'm attaching a zip with 2 files:

Code: //var msg = new MsgReader.Outlook.Storage.Message(@"C:\Users\5 Edição IoT Challenge Altice Empresas.msg"); var msg = new MsgReader.Outlook.Storage.Message(@"C:\Users\A sua zona tem Fibra -MEO-M4-e-Prospects-20200903.msg"); var from = msg.Sender; var sentOn = msg.SentOn; var recipientsTo = msg.GetEmailRecipients(MsgReader.Outlook.RecipientType.To, false, false); var recipientsCc = msg.GetEmailRecipients(MsgReader.Outlook.RecipientType.Cc, false, false); var subject = msg.Subject; var htmlBody = msg.BodyHtml; Console.WriteLine("Body:" + htmlBody); // etc... Console.ReadLine();

Can you help with this issue?

Best Regards MSGReaderSample.zip

Sicos1977 commented 4 years ago

Fixed in the latest release

SudD3v commented 4 years ago

Hi, i've tested again using the same files and the 3.7.33 version (latest) but the result is the same. The file "A sua zona tem Fibra -MEO-M4-e-Prospects-20200903.msg" still returns null. image

Best Regards

Sicos1977 commented 3 years ago

Fixed in commit https://github.com/Sicos1977/MSGReader/commit/f0251183eaddb4ec52903c86c8ad386d3814f9d2