MsgKit icon indicating copy to clipboard operation
MsgKit copied to clipboard

Convert EML file with MSG attachment to MSG file, the attachment becomes EML format

Open sang2357 opened this issue 3 years ago • 2 comments

Referring to the issue #issue-1246285318, is the method ConvertEmlToMsg in Converter.cs always set the attachment to extension eml, even the attachment is a msg?

if (bodyPart is MessagePart messagePart)
{
    messagePart.Message.WriteTo(attachmentStream);
    if (messagePart.Message != null)
        fileName = messagePart.Message.Subject;

    extension = ".eml";
}

sang2357 avatar Jun 16 '22 07:06 sang2357

It looks like the conversion code assumes that all message attachments are in the same format as the parent email, but this is not always the case. There are many EML formatted messages in our datasource that have MSG attachments.

kiwikoda avatar Nov 14 '22 15:11 kiwikoda

Can you sent me one example mail with your issue so that I have someting that I can use to test. If so then please ZIP te file before sending it to [email protected]

Sicos1977 avatar Dec 19 '22 16:12 Sicos1977

This is probably not going to happen anymore so I'm closing this issue

Sicos1977 avatar May 30 '24 06:05 Sicos1977