Outlook Task / TaskRequest in eml format shows MessageClass as "IPM.Note"

Could you please help with the following:

  1. Task (IPM.Task) /Task Request (IPM.TaskRequest) shows incorrect Message class (IPM.Note) when loaded from eml.

Please refer to the following code snippet:
public static void createAndSaveMapiTask(String dataDir) {
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone(“GMT”));
calendar.set(2016, Calendar.NOVEMBER, 1, 0, 0, 0);
Date startDate = calendar.getTime();
calendar.set(2016, Calendar.DECEMBER, 1);
Date endDate = calendar.getTime();
MapiTask task = new MapiTask(“To Do”, “Just click and type to add new task”, startDate, endDate);
task.setPercentComplete(20);
task.setEstimatedEffort(2000);
task.setActualEffort(20);
task.setHistory(MapiTaskHistory.Assigned);
task.getUsers().setOwner(“Darius”);
task.getUsers().setLastAssigner(“Harkness”);
task.getUsers().setLastDelegate(“Harkness”);
task.getUsers().setOwnership(MapiTaskOwnership.AssignersCopy);
String[] companies = { “company1”, “company2”, “company3” };
task.setCompanies(companies);
String[] categories = { “category1”, “category2”, “category3” };
task.setCategories(categories);
task.setMileage(“Some test mileage”);
task.setBilling(“Test billing information”);
task.getUsers().setDelegator(“Test Delegator”);
task.setSensitivity(MapiSensitivity.Personal);
task.setStatus(MapiTaskStatus.Complete);
task.save(dataDir + “MapiTask_out.msg”, TaskSaveFormat.Msg);
}

@Test
public void testTaskMessage() throws Exception{
//create a task
    createAndSaveMapiTask(msgDir);

//check Message Class of created task msg file
MapiMessage msg = MapiMessage.fromFile(msgDir+"MapiTask_out.msg");
    assertEquals("IPM.Task", msg.getMessageClass()); //passes

//save task as eml
    MsgLoadOptions msgLoadOptions = new MsgLoadOptions();
    msgLoadOptions.setPreserveTnefAttachments(true);
    MailMessage msg = MailMessage.load(msgDir+ MapiTask_out.msg", msgLoadOptions);
    msg.save(msgDir + "MapiTask.eml");

//check Message Class of created task eml file
MapiMessage m = MapiMessage.fromMailMessage(msgDir+ "MapiTask.eml");
    assertEquals("IPM.Task", m.getMessageClass()); //fails!! m.getMessageClass() returns IPM.Note
}
  1. Could you provide a code to create a “Task Request” using the Aspose library.

@curtisyamada

We need to investigate this issue on our end and a ticket with ID EMAILJAVA-34779 has been created in our issue tracking system to further investigate the issue. This thread has been linked with the issue so that we may notify you once issue will be investigated.

any updates on this ? Thx

@kennethkli

At present the issue is still unresolved. We request for your patience and will share updates with you as soon as the issue will be fixed.

Hi @mudassir.fayyaz, could you please share any updates on this issue?

@curtisyamada

At present the issue is unresolved. We request for your patience and will share the good news with you as soon as the issue will be addressed.

Hello, Any updates on this fix?

Hello any updated on the fix from Aspose team?

The issues you have found earlier (filed as EMAILJAVA-34779) have been fixed in this update.

@curtisyamada,
I did not send a notification about updates on time. I apologize for the inconvenience caused.

So are these fixed?

@curtisyamada,
The fix has been released in Aspose.Email 21.2. Please use the latest version of Aspose.Email.