Use Case:
- We are using the below code to for reading emails within PST and getting a MapiMessage object. Below is the Java code.
PersonalStorage asposePstFile = PersonalStorage.fromFile(path_to_pst);
FolderInfo folderInfo = asposePstFile.getRootFolder();
FolderInfoCollection folderInfoCollection = folderInfo .getSubFolders(FolderKind.Normal);
for (FolderInfo childFolder : childFolders) {
MessageInfoCollection messageInfoCollection = folder.getContents();
for (MessageInfo messageInfo : messageInfoCollection) {
MapiMessage message = asposePstFile.extractMessage(messageInfo);
//QUERY - HERE NEED TO FETCH THE CHARSET
}
}
- Once the MapiMessage object is obtained, how can we get the HTML Body charset and the plainbody charset. We need the charset for further processing.
In java pstlib api, we use to have the methods like message.getBodyHTMLCharset() or message.getBodyCharset(). What are the equivalent method in MapiMessage object.
Can you please help in this regards, its kind of urgent?
Thanks & Regards