How to read .pst file?

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
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.
 
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
 
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.?
 
Back
Top