Does anyone know of a good tool that converts .pst to .csv files through command line?
one time only? or programmatically?
if one time only, import into a mail program that handles mbox (e.g. Thunderbird), at which point you just have text files, manipulate as desired.
otherwise, no idea, best of luck.
I need to be able to do it programmatically!
I didn't see anything useful in MailNavigator or Wikipedia...
Can you assume Outlook is installed on the computer? If so, I believe it can be background scripted using OLE or something similar. I've done file conversions through Excel using Ruby that way.
And here's a Perl example
You can always write a .Net application using CDO, MAPI, OOM or Redemption, that does what you need. I've written a complete Outlook exporter tool for my company, which you can view at http://www.tzunami.com
A solution I just stumbled across is: libpst
It obviously doesn't convert straight to CSV, but it converts into a more manageable format.
Importing into Outlook and then exporting as CSV is still probably the quickest solution, but libpst would certainly be useful if all you have is the PST file and no Outlook.