To fetch the specified properties from a PST file using Aspose.Email in Java, you can utilize the following methods based on the provided code snippet. Here’s how you can retrieve each of the requested properties:
Subfolders Data: You can retrieve subfolders using the getSubFolders() method of the FolderInfo class. In the provided code, this is already demonstrated. You can iterate through the subfolders as follows:
if (folderInfo.hasSubFolders()) {
for (int i = 0; i < folderInfo.getSubFolders().size(); i++) {
FolderInfo subfolderInfo = (FolderInfo) folderInfo.getSubFolders().get_Item(i);
System.out.println("Subfolder: " + subfolderInfo.getDisplayName());
// You can call displayFolderContents(subfolderInfo, pst) to display its contents recursively
}
}
To, Cc, Bcc Email Addresses: The MessageInfo class provides methods to get the “To”, “Cc”, and “Bcc” email addresses. You can use getDisplayTo(), getDisplayCC(), and getDisplayBCC() methods respectively. Here’s how you can print these addresses:
Attachment & Inline Images Info: You can access attachments using the getAttachments() method of the MessageInfo class. To get information about attachments and inline images, you can iterate through the attachments collection:
Conversation Data: To retrieve conversation data, you can use the getConversationIndex() method of the MessageInfo class. This will give you the conversation index for the message:
You can run your Java application as a backend service and communicate with it from the Xcode project via HTTP or WebSockets.
You could also consider using Aspose.Email for C++ for integration with the Xcode project.
(We currently release Aspose.Email for C++ for macOS, but only for x64 platforms. We do not provide a version for ARM architectures.)
Okay @sergey.vivsiuk will run Java application itself as a backend service and we will communicate, since we are looking for both architectures.
Also we are looking to purchase Aspose.Email package for Java in our organisation, but with the code you provided above I am able to parse everything, can you let me know what I am missing here in the paid version? My main motive is to parse the PST/OST files.
The fully licensed version offers benefits that go beyond the functionality of trial or limited versions.
No restrictions on the number of items processed in PST/OST files. (Only 50 emails can be extracted from a folder in PST file in the evaluation version)
No restrictions on the number of attachments in messages. (Only 3 attachments as well as inline images can be extracted from a message in the evaluation version)
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.