How can I get the email address and PST name?
We're working on stuff that deals with PST, so we're trying to create some sample code with java-libpst . It works great for me, but we need to show the PST details such as the PST name, the configured email account for the given PST.
I want to show the email address and name of a given address of a given PST.
public Test(String filename) {
try {
PSTFile pstFile = new PSTFile(filename);
PSTFolder pstFolder=pstFile.getRootFolder();
System.out.println(pstFile.getMessageStore().getDisplayName());
processFolder(pstFile.getRootFolder());
} catch (Exception err) {
err.printStackTrace();
}
}
pstFile.getMessageStore().getDisplayName()
show imap.gmail.com and we want two more things like my email address: mymail@gmail.com and name: My Name.
How can I get two properties using java-libpst?
+3
source to share
No one has answered this question yet
Check out similar questions: