We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

EML to MSG Conversion issue for Calendar event

Hi Team
We are using java language in our project and finding issue on converting calendar event to msg file.
We are seeing that msg body not able to render calendar visuals but source eml does.
sampleCalendarFiles.7z (10.6 KB)
image.png (16.2 KB)
Image.png --> Able to see the calendar visuals on eml file

Below java code we are using to convert

======================
String sourceEmlPath = “/home/test/sourceCalendarTest.eml”;
String saveType = “msg”;
String saveMsgPath = “/home/test/outputCalendarTest.msg”

MailMessage mail = MailMessage.load(sourceEmlPath);
SaveOptions saveOptions = SaveOptions.createSaveOptions(saveType);
if (saveOptions instanceof MsgSaveOptions) {
((MsgSaveOptions) saveOptions).setPreserveOriginalDates(true);
}
try(FileOutputStream fos = new FileOutputStream(saveMsgPath)) {
mail.save(fos, saveOptions);
}

==========================================

I am attaching the source EML and MSG file (after conversion) also for validating purpose.
Note: We are using Aspose email version --> 19.2

@tarun.smarsh658

We have logged this problem in our issue tracking system as EMAILJAVA-35102. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@tahir.manzoor
May i know the status for the fix of the issue EMAILJAVA-35102.

@tarun.smarsh658

Currently, your issue is pending for analysis and is in the queue. Once we complete the analysis of your issue, we will then be able to provide you an estimate.

@tarun.smarsh658

It is to inform you that this issue is not a bug in Aspose.Email. You can check the issue with two test cases:

  1. Save source EML to MSG using Outlook, and then open saved MSG in Outlook. You can see that the Outlook saved message has a same result as Aspose converted output.msg. Outlook saved message.png (6.6 KB)
    Save message.png (6.1 KB)

  2. Convert outlook.msg back to EML, and then open EML with Outlook. You can see that visual calendar element is back.

MailMessage eml = MailMessage.load("output.msg");
eml.save("output.eml");

output.eml in Outlook.png (4.2 KB)