Sicos1977 / MSGReader

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

Regression with handling of bulleted lists in html body #330

Closed dariuslf closed 1 year ago

dariuslf commented 1 year ago

This is a bug report for an otherwise fantastic library!

A simple outlook file with a body containing a bulleted list returns a bulleted list with the items prefixed by a bullet unicode character (00B7 middle dot) when the BodyHtml property is read.

This does not occur with 4.4.10 and does with 4.4.11-4.4.16.

Steps to reproduce the behaviour:

  1. Save a .msg file containing an html body with a bulleted list
  2. Create a new Message instance from the saved file.
  3. Check the contents of the .BodyHtml property
  4. See that the text content of the bulleted list items are now prefixed with a unicode bullet character

Expected behaviour I expect the BodyHtml property not to contain these extra unicode characters as was the case in 4.4.10

Sicos1977 commented 1 year ago

If I remember correctly I fixed an issue like this before. Have to check if I undid something when fixing other bugs.

Sicos1977 commented 1 year ago

Is it possible to sent me an example file? For some reason I can't reproduce the issue with my own Outlook client. Please ZIP the msg file before sending it to sicos2002@hotmail.com

dariuslf commented 1 year ago

I've sent a mail with a zipped .msg which exhibits the behaviour. I hope this reproduces for you!

Sicos1977 commented 1 year ago

Your issue is fixed in this commit b4c038042df9fc4f75f7af8b8f639940333c9bdd. At the moment I can't release a new nuget package because I'm also doing some other work on MSGReader. If you need it in a hurry you need to get to code from GitHub and compile it yourself

Sicos1977 commented 1 year ago

And thanks for the nice words about MSGReader

dariuslf commented 1 year ago

Thank you for the quick turnaround and I'm looking forward to your next release.