Outlook PST File Parsing in Python [closed]

别说谁变了你拦得住时间么 提交于 2019-11-26 16:51:14

问题


How can I parse and read an outlook pst file in Python?


回答1:


I have only ever poked at libpst docs, but it looks like the libpst-python package might work for you: libpst-python




回答2:


pypff is a python wrapper for the C library libpff that allows you to access email and the directory structure of Pst files within python.

Do a make of the library with the specified command to install the python bindings. Then you should be able to open up the python console and browse through Pst files.

import pypff

pst = pypff.file()
pst.open("MyPst.pst")
pst.close()

There are more examples on the libraries website. However, I found that there wasn't enough functionality in the library yet. For instance, you can read emails and the directories, but there isn't anything for attachments yet.



来源:https://stackoverflow.com/questions/3197388/outlook-pst-file-parsing-in-python

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!