473,473 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

reading a pst with C#

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
Feb 14 '06 #1
7 2098
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.
"Bob Weiner" <bo*@engr.uconn.edu> wrote in message
news:Oq*************@TK2MSFTNGP15.phx.gbl...
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

Feb 14 '06 #2
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ux****************@TK2MSFTNGP15.phx.gbl...
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...
Feb 14 '06 #3
Or you can wait for WinFS and then wait for the Outlook team to move
their store from .pst to the WinFS database.... :)

Feb 14 '06 #4
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

Feb 14 '06 #5
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.
<sd*****@cornercap.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
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

Feb 14 '06 #6
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
"Bob Weiner" <bo*@engr.uconn.edu> wrote in message
news:Oq*************@TK2MSFTNGP15.phx.gbl...
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

Feb 14 '06 #7
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.

Feb 14 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andy | last post by:
Hi, In the code below (not pretty I know but it's an early version :-P) I'm having problems reading the data object back in. If I move the reading code to immediately after the section where it...
6
by: Raymond Hettinger | last post by:
Found in a pamphlet at a pre-school: --------------------------------------- Reading improves vocabulary Reading raises cultural literacy through shared knowledge Reading develops writing skills...
4
by: Xah Lee | last post by:
# -*- coding: utf-8 -*- # Python # to open a file and write to file # do f=open('xfile.txt','w') # this creates a file "object" and name it f. # the second argument of open can be
24
by: Hendrik Schober | last post by:
Hi, I have a 'std::istream' and need to read its whole contents into a string. How can I do this? TIA; Schobi
19
by: Lionel B | last post by:
Greetings, I need to read (unformatted text) from stdin up to EOF into a char buffer; of course I cannot allocate my buffer until I know how much text is available, and I do not know how much...
4
by: Oliver Knoll | last post by:
According to my ANSI book, tmpfile() creates a file with wb+ mode (that is just writing, right?). How would one reopen it for reading? I got the following (which works): FILE *tmpFile =...
6
by: KevinD | last post by:
assumption: I am new to C and old to COBOL I have been reading a lot (self teaching) but something is not sinking in with respect to reading a simple file - one record at a time. Using C, I am...
3
by: Nick | last post by:
I have found a class that compresses and uncompresses data but need some help with how to use part of it below is the deflate method which compresses the string that I pass in, this works OK. At...
9
by: Mike Reed | last post by:
I must be having a "senile" day! I cannot recall, nor get to work, code to read a cookie's expiration date/time in an ASP page/VBScript. What am I missing? *** Sent via Developersdex...
4
by: Gaijinco | last post by:
I had a file named nap.in which looks like this: 4 10:00 12:00 Lectures 12:00 13:00 Lunch, like always. 13:00 15:00 Boring lectures... 15:30 17:45 Reading 4 10:00 12:00 Lectures 12:00 13:00...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.