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

Free Support Forum - aspose.com

How to get MapiMessage Class Type using Aspose.Email For JAVA API

Hi,
I have to get Message Class Type while reading the PST File using Aspose.Email For JAVA API. I have tried below code to read only mails type. If you people know more Message Class Type please provide me.

source code:-

Please provide me :-IPM.Note,REPORT.IPM.Note.NDR,IPM.Schedule.Meeting.Canceled like this classes type.

if ( f_objMapiMessage != null &&
( f_objMapiMessage.getMessageClass().equals(“IPM.Note”) ||
f_objMapiMessage.getMessageClass().equals(“REPORT.IPM.Note.NDR”) ||
f_objMapiMessage.getMessageClass().equals(“IPM.Schedule.Meeting.Canceled”) ||
f_objMapiMessage.getMessageClass().equals(“REPORT.IPM.Note.Delayed.DR”) ||
f_objMapiMessage.getMessageClass().equals(“IPM.Sharing”) ||
f_objMapiMessage.getMessageClass().equals(“IPM.Note.SMIME.MultipartSigned”) ||
f_objMapiMessage.getMessageClass().equals(“Report.IPM.Note.IPNRN”)

    						)		
    				   )
    				{
    					raiseEvent(f_objMapiMessage,p_objFolder);
    				}

@kharade.a,

You can use the item types as defined [here ](https://msdn.microsoft.com/en-us/library/bb176446(v=office.12).aspx) in your if condition. Please let us know if you have any further query in this regard.