Urgent: Programmatically accessing content of mails

U

ubhay

Hi ...

I am using ms outlook sp-2.
I need to iterate through a user defined folder (say folder "BouncedMails")
and read/parse the contents of all the mails in it.
and delete the mail after parsing/extracting.

Questions:

1. What is the best way of doing this. How can i use VBA/Macro. Any other
way?
I am a newbie in this field so answers with detail appreciated.

2 Does outlook keep the mails in a predefined folder from where i can get
the content of mails (writing any simple java program
and giving it the path of that particular folder). Which one would be
efficient/better, this one or using Macro/VBA.

3 What if i want to integrate the solution with a "rule".



Thanks in advance,
Regards,
Ubhay.
 
S

Sue Mosher [MVP-Outlook]

1) If you're new to Outlook VBA macros, these web pages should help you get
started:

http://www.winnetmag.com/Articles/Index.cfm?ArticleID=21522&pg=1
http://www.outlookcode.com/d/vb.htm

2) To access data in any Outlook folder, you need to walk the folder
hierarchy using the Folders collections or use a function that does that for
you. See http://www.outlookcode.com/d/code/getfolder.htm

3) Outlook 2002 and 2003 support running a VBA procedure from a "run a
script" rule action. The procedure must be a Public Sub with a MailItem as
the sole argument.

FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba
 

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