Sicos1977 / MSGReader

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

Regression: Nested signed mail showed as nameless.eml #397

Closed minimalisticMe closed 7 months ago

minimalisticMe commented 8 months ago

Describe the bug When extracting a mail with multiple nested mails (mail attachments) I can extract all mails correctly, but one mail is named incorrectly. One of the attached mails is a singed mail and the name of this mail is "Nameless.eml" instead of the correct name. This was working correctly on a prior version (I am not sure which one, it was some time mid last year).

Platform (please complete the following information):

Exception No exception, just incorrect parsing.

To Reproduce Is there a way to share the mail securely? It contains personal data of me.

Expected behavior The name of the attached signed mail is read correctly.

Code Snippets

var eml = MsgReader.Mime.Message.Load(stream);
foreach (var item in eml.Attachments)
{
     if (item.IsAttachment)
     {
         var originalFilename = item.FileName; // wrong in one of the attachments
     }
}
minimalisticMe commented 8 months ago

Can I help by sending you the eml-file in question?

Sicos1977 commented 8 months ago

Yes please sent it to @.*** ... Zip the file before sendingMet vriendelijke groet,Kees van Spelde

minimalisticMe commented 8 months ago

@Sicos1977 Thank you very much for looking into this. I sent you a mail to ***@hotmail.com (found in another issue, as this mail-address was redacted).

Sicos1977 commented 7 months ago

Please try the latest source to see if the problem is fixed with this commit --> b6c26efc124fb43bfec8593efff0dd5db70800de

Sicos1977 commented 7 months ago

https://www.nuget.org/packages/MsgReader/5.5.6

minimalisticMe commented 7 months ago

@Sicos1977 I can confirm: After updating to nuget package now everything works as expected. Thank you very much.