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.