Task and Contact as an attachment shown as MSG as an attachment(Aspose.Email For JAVA API)

Hi,
I have to read PST file one by one mail and save this mail into MSG. But in my source PST sample has Task and Contacts as an attachment but when i save that mail as as MSG at destination. and when i open this mail task annd contacts attachment shown MSG as an attachment.
Please find the source PST and source screen shots

**source code :- **

MapiMessage f_objMapiMessage = null;
IGenericEnumerable f_mapiMessageCollection =
p_objFolderInfo.enumerateMapiMessages();
MailConversionOptions f_mailConversionOption = null;

IGenericEnumerator f_Iterator = f_mapiMessageCollection.iterator();

while(f_Iterator.hasNext())
{
f_objMapiMessage = f_Iterator.next();
if (f_objMapiMessage != null && f_objMapiMessage.getMessageClass().equals(“IPM.Note”))
{
f_objMapiMessage.save(f_StrDestinationPath,SaveOptions.getDefaultEml());
}
}

source PST Sample :-
Test Contact and task.pst.zip (133.2 KB)

Screen Shots of Source PST Sample.
conatct as an attachment.png (72.3 KB)
Task as an attachment.png (72.6 KB)

@kharade.a,

Thank you for writing to Aspose support team.

This issue is observed and logged under Id:EMAILJAVA-34325 for further investigation by the product team. You will be automatically notified once any update is received in this regard.

@kharade.a,

The issue logged in this thread has been fixed in the latest version of Aspose.Email for Java 17.12. Please download it and let us know if you have any further query in this regard.

You may use the following code to prevent message conversion:

MailConversionOptions conversionOptions = new MailConversionOptions();
conversionOptions.setPreserveEmbeddedMessageFormat(true);
message.toMailMessage(conversionOptions).save("output.eml");

Also, we have added the EmlSaveOptions.setPreserveEmbeddedMessageFormat property for convenience:

EmlSaveOptions saveOptions = new EmlSaveOptions(MailMessageSaveType.getEmlFormat());
saveOptions.setPreserveEmbeddedMessageFormat(true);
message.save("output.eml", saveOptions);