Sushant Singh Negi
Sushant Singh Negi

Reputation: 1

How to Extract Emails from .pst Files Using Python?

I have .pst file of outlook emails from which i want to extract the emails. what approach should I follow to extract the emails from this. i'm writing python code for it.

data extraction from .pst file without using third party library. is it possible or not?

Upvotes: 0

Views: 36

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66286

If you don't want any third part libraries, then Outlook Object Model is your only choice - use Namespace.AddStore/AddStoreEX. Keep in mind that it does not return the newly added store, you'd need to get it from the Namespace.Stores collection. Once you have the Store object, you can recursively drill down the folder hierarchy (starting with Store.GetRootFolder()) to access folder messages.

Upvotes: 0

Related Questions