问题
Is it possible to somehow use PHP to read the contents of a .pst file?
回答1:
There's a standalone program to convert PST to other formats (which may be then readable using PHP extensions, e.g. php_imap): http://www.five-ten-sg.com/libpst/
However, as Microsoft keeps changing the PST format, it's not guaranteed that you'll be able to convert all PST files.
回答2:
Exporting folders from MS Outlook (FILE -> OPEN -> IMPORT -> EXPORT TO A FILE) into plain text CSV enables easy parsing e.g. via fgetcsv function. The libpst
is only supported on linux (RPM).
Format of PST file is complex and parsing it with PHP would be a tremendous job.
来源:https://stackoverflow.com/questions/3222920/read-contents-of-pst-file-with-php