seansummers
6/4/2015 - 11:55 PM

read pst files with java-libpst

read pst files with java-libpst

from com.pff import PSTFile, PSTObject
a = PSTFile('outlook.ost')
b = a.rootFolder

def walkFolders(folder):
    print folder.descriptorNodeId, folder.displayName, folder.contentCount
    if folder.hasSubfolders():
        for f in folder.subFolders:
            walkFolders(f)


walkFolders(b)
c = PSTObject.detectAndLoadPSTObject(a, 8578)
d = c.getChildren(c.contentCount)