Hello,
We use Mail.dll to convert .MSG to .EML with the following code :
using (MsgConverter converter = new MsgConverter(@"c:\outlook1.msg"))
{
if (converter.Type == MsgType.Note)
{
IMail email = converter.CreateMessage();
// Render message using MIME format to byte array
byte[] mime = email.Render();
// Save message to file using MIME message format
email.Save(@"c:\mime.eml");
}
}
This works well except for attachment with an accent in file name.
The attachment name seems to be encoding in iso-8859-1 and the converter use utf-8 so the name of the attachment is corrupted.
Example : if the attachment file name is étude.pdf in Outlook, in the .eml it's �tude.pdf the é (=E9) become =EF=BF=BD
Can you tell me how to fix that ?
Thanks!