Export a folder within PST to CSV

670 views Asked by At

I am trying to solve a problem with C#. I am able to import PST to outlook. Then use Import and Export option of Outlook to convert a folder within PST (chats) to CSV. how can i do the same using C#? If there is anyone who can help me with the code or give me link to any reference, it would be of great help.

Thanks

2

There are 2 answers

7
Eugene Astafiev On

It is not clear what exactly you want to export. Anyway, you may find the C# app automates Outlook (CSAutomateOutlook) sample project helpful.

It looks like you need to iterate over all folders and grab the required information. The How to: Enumerate Folders page is a good start for you.

0
neolei On

Try Pstxy

It provide a .NET API, which you can iterate over Outlook PST files, and extract mail contents you need.