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)