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
java pst


source to share


No one has answered this question yet

Check out similar questions:

2240
How to create an executable JAR with dependencies using Maven?
1818
How to get enum value from string value in Java?
1415
How do I convert the stack trace to a string?
1250
How can I concatenate two arrays in Java?
1070
How can I initialize a static map?
969
How can I generate an MD5 hash?
951
How can I put an integer with zeros on the left?
8
A library for canonicalizing (normalizing, but not just cleaning up) email addresses
1
java how to send email via any account
1
How to tokenize, scan, or split this string of email addresses



All Articles
Loading...
X
Show
Funny
Dev
Pics