Export from pst file

  • Thread starter Thread starter Pascal Couvreur
  • Start date Start date
P

Pascal Couvreur

Hi,

I'd like to program a VB.Net application (but it could be C#) to export
message found in a PST File.

Pst file comes from Outlook 2000. It contains folder with email (mapifolder)
and those emails can contain attachements. Attachements also have to be
saved.
Save format should be RTF, not msg. A link should replace the location on
the body of the email where the attachment is inserted.

Thanks if you have any idea.


Regards,

PC.
 
The Outlook Object model supports all that you want to do, except you can't
automate the Import/Export Wizard. You have to write the code yourself to
iterate through all of the Items in a given MAPIFolder. When you get an
Item object, you can use the .SaveAs method to save to a file, and you can
also iterate through an Item.Attachments collection to save those as well.
You can then copy the path of the saved attachment and insert it into the
Item.Body property.

There's also a wealth of third-party utilities that can do this for you; see
http://www.slipstick.com/addins/housekeeping.htm. See this as well:
http://www.slipstick.com/addins/auto.htm.
 
Back
Top