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

Strange attachment names when parsing some .msg files #391

Closed vhanzu closed 6 months ago

vhanzu commented 9 months ago

I am using the nuget package in c# and I was parsing some msg file from a customer, no extra details.

var reader = new MsgReader.Reader(); var outputFiles = reader.ExtractToFolder(fileName, outputFolder);

The result contains some ugly attachment names: image

But it should be like these: image

Most likely the issue in in the Attachment constructor where the MapiTags.PR_ATTACH_LONG_FILENAME is considered as most relevant for reading the attachment name. But in my opinion MapiTags.PR_DISPLAY_NAME should be more relevant as this is the one getting displayed to the user.

Unfortunately, I can't attach the msg file causing the issue.

Desktop (please complete the following information):

Sicos1977 commented 9 months ago

Uh.... I think I fixed this.. if not then please reopen this issue.

vhanzu commented 9 months ago

I've just retested with the latest nuget, version 5.5.5.0, MsrReader.dll date 17.01.2024 and the problem still reproduces.

msgreader nuget package

Unfortunately, I can't reopen the bug because there is no Reopen button available.

Sicos1977 commented 9 months ago

I reopened the issue... thought that I had fixed this but apperently not... I'll try to look into this, this week.

Sicos1977 commented 7 months ago

Can you resent me the file that is giving this issue? I know that you sent it before but I can't find this msg file anymore. Please zip the file before sending it to sicos2002@hotmail.com

vhanzu commented 6 months ago

Bestellung 4500745288.zip

Sicos1977 commented 6 months ago

I did receive your e-mail but didn't have the time to look into it... I try to do it this weekend.