How to read .pst file?

G

Guest

Supposed I have a .pst file that contains mails in Inbox folder. How can I write a program to read the those mails? The program must read from the .pst file without Outlook start-up.

Any clue?
 
D

Dmitry Streblechenko \(MVP\)

Outlook needs to be running if you want to read the PST file unless you want
to use Extended MAPI (C++/Delphi only).
In OOM opening a PST file is as simple as Namespace.AddStore

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


Roger said:
Supposed I have a .pst file that contains mails in Inbox folder. How can
I write a program to read the those mails? The program must read from the
..pst file without Outlook start-up.
 
G

Guest

If I want to read a .pst file from one location, where I can supply the filepath and filename?

For example, I have a .pst currently in c:\temp. How can the application know where is the .pst file in c:\temp





----- Dmitry Streblechenko (MVP) wrote: -----

Outlook needs to be running if you want to read the PST file unless you want
to use Extended MAPI (C++/Delphi only).
In OOM opening a PST file is as simple as Namespace.AddStore

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


Roger said:
Supposed I have a .pst file that contains mails in Inbox folder. How can
I write a program to read the those mails? The program must read from the
..pst file without Outlook start-up.
 
D

Dmitry Streblechenko \(MVP\)

Namespace.AddStore "c:\temp\MyCoolPST.pst"

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


Roger said:
If I want to read a .pst file from one location, where I can supply the filepath and filename?

For example, I have a .pst currently in c:\temp. How can the application
know where is the .pst file in c:\temp
 
G

Guest

I write

Dim MyOlapp As New Outlook.Applicatio

Dim MyDN As Outlook.NameSpac

Set MyDN = MyOlapp.GetNamespace("MAPI"

MyDN.AddStore ("c:\temp\backup.pst"


But I don't see VB pickup the backup.pst file.?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top