reading a pst with C#

  • Thread starter Thread starter Bob Weiner
  • Start date Start date
B

Bob Weiner

Not sure where I should be posting this question but...

I want to loop through all the messages in a pst file and forward them to
another address. My purpose is first to test a spam filtering solution,
then to train a baysian filter.

I would like to use C# but am finding that .net/mapi don't play well
together. Can someone point me in the right direction?


thanks, bob
 
I believe you'll have to use the Outlook COM interface. You may want to ask
about this on an Outlook newsgroup.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
 
I believe you'll have to use the Outlook COM interface.

Yes - I think that's the only way... I don't know of anything other than
that which understands the .pst file format...
 
Or you can wait for WinFS and then wait for the Outlook team to move
their store from .pst to the WinFS database.... :)
 
What about Visual Studio Tools for Office 2005? It has plug-in ability
for Outlook. The latest MSDN magazine has an article and sample
application.

Sean
 
You're right, Sean. I'm pretty sure it's a wrapper for the Outlook COM
object, but it's still bound to be much easier to use.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
 
Thanks all.

I was hoping that there would be a quick method. I will look into VS Tools
for Office 2005 for future use.


What ever happened to banging out a fast perl script :-(

bob
 
VSTO is Microsoft's "new direction" on how to interact with Outlook,
Excel, and Word. It's much friendlier than older ways of interacting
with these products, although I can't vouch for its stability. I would
say that if it's an option to use VSTO, then use it.
 
Hi,

Please try Aspose.Networi for .NET for reading Outlook PST files and extracting messages in msg format. It does not required MS Outllook to be installed and can be used in any language supported by .NET framework e.g. C# and VB.NET.

Please visit http://www.aspose.com/documentation...and-save-to-disk-or-stream-in-msg-format.html for an code snippet for extracting msg files from PST file.

Regards,
Saqib Razzaq
Aspose - Your File Format Expers
 
Back
Top