I have to read only mails from PST file. I am using Aspose.Email for java API. But while reading all mail, calendar , contacts , notes, journal, task gets read. I have to get only mails and there respected folder name. I am using below code to read messages.
IGenericEnumerable collection =folderInfo.enumerateMapiMessages();
IGenericEnumerator iterator = collection.iterator();
MapiMessage mapiMessage = iterator.next();