Sicos1977 / MSGReader

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

Message.Load() method returns filenames without extension for attachments of .DAT files #375

Closed ssrirengancodehub closed 9 months ago

ssrirengancodehub commented 1 year ago

We are using MsgReader nuget in our application. I am having a scenario that my .EML file has an attachment with .DAT extension. The MsgReader nuget reads the .EML file from the disk and returns the Message object (MessagePart) where the attachment file information are missing its extension (.DAT).. The filename in the MessagePart/Message object should have ".dat". But its dropping the extension of .dat. It just has only the exact filename without its extension. This nuget works well with other attached document types such as .docx, .pdf, .bin and etc.. I updated to latest version of this nuget and no luck on it. It looks like there is a bug in the program that its not able to handle .EML file which has the attachment type as .DAT.. Please check this and let me know whether I can do any workaround to make it work. I am reachable on my email address.

A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Have an outlook item (.EML) file with attachments of .DAT files
  2. Call Message.Load() method by passing the file name of the above outlook .EML file.
  3. Verify the return values in the Message Object. The attachment part should have the file name with extension..

Expected behavior The file name of the attachments should have the extension as .DAT

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Sicos1977 commented 1 year ago

Can you sent me this fiile that is giving this problem? Please ZIP it before sending it to sicos2002@hotmail.com

ssrirengancodehub commented 1 year ago

Kees... Sent you the .DAT files in the zip format to your email sicos2002@hotmail.com. Some of our team members are suspecting that image files in the Signature section got converted to .DAT files by MS Outlook. But still its just a theory and no POC for this theory. Whatever the case, not sure why MsgReader NuGet is dropping the extension of this file when the file type is .DAT.

Sicos1977 commented 9 months ago

Should be fixed in the latest version