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

Free Support Forum - aspose.com

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);
String[] companies = { “company1”, “company2”, “company3” };
String[] categories = { “category1”, “category2”, “category3” };
task.setMileage(“Some test mileage”);
task.setBilling(“Test billing information”);
task.getUsers().setDelegator(“Test Delegator”);
task.save(dataDir + “MapiTask_out.msg”, TaskSaveFormat.Msg);

public void testTaskMessage() throws Exception{
//create a task

//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();
    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.


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


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?


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.

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

So are these fixed?

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