Task fields lost when converting MapiMessage to MailMessage


#1

When a MapiMessage task item is converted to MailMessage, it seems that the task fields are being lost. Here is an example using attached MSG (Outlook task): input.zip (5.8 KB)

var saveOpts = new Aspose.Email.MhtSaveOptions();
saveOpts.MhtFormatOptions = Aspose.Email.MhtFormatOptions.WriteHeader | Aspose.Email.MhtFormatOptions.RenderCalendarEvent |  Email.MhtFormatOptions.RenderTaskFields | Aspose.Email.MhtFormatOptions.RenderVCardInfo | Aspose.Email.MhtFormatOptions.WriteCompleteEmailAddress;

// Load as MapiMessage
var mapiMsg = Aspose.Email.Mapi.MapiMessage.FromFile("c:\\test\\input.msg");

// Save MapiMessage to MHTML
mapiMsg.Save("c:\\test\\output1.mhtml", saveOpts);

// Convert to MailMessage
var mailMsg = mapiMsg.ToMailMessage(new Aspose.Email.Mapi.MailConversionOptions());

// Save MailMessage to MTHML using same options - PRODUCES DIFFERENT OUTPUT
mailMsg.Save("c:\\test\\output2.mhtml", saveOpts);

It does not seem this is expected behaviour. Can you please advise how MailMessage can include the task fields. Thank you.


#2

@ast3,

I have observed the issue shared by you and an issue with ID EMAILNET-39637 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.