If the user use Exchange Server, Item_Add event NEVER occurs if there are rules...

B

Bogdan Tarla

I developed a plug-in for Outlook 2k/XP in Visual Basic 6.0

My plug-in extract subject and body for all incoming messages. I created a
notification form. This form appears on the screen when new mail arrived.

I used Item_Add event for the Inbox folder

Problems:

1. If the user has rules (ex. a rule who move the new messages in other
folder) Item_Add event doesn't always occurs.

2. If the user use Exchange Server, Item_Add event NEVER occurs if there are
rules...



I know there is an event in Outlook (new_mail). This event occurs when a new
message arrived, but this event doesn't return newMail item.



I want to retrieve all new MailItem objects when a new message arrived in
all conditions (Exchange, Rules) on Outlook2k (Corporate and Client Mail
Only) and OutlookXP.

Please I'm disparate, because on the Internet, I can't find any solutions



PS

If this is not possible, I want to create programmatically a rule. This rule
will copy all new messages in a folder RetrievedNewMails (this folder i will
create programmatically in DeletedItems folder). Means the event Item_Add
(for this folder) always fire. The problem is: Is possible to create
programmatically (in Visual Basic) rules?? If the user uses Outlook with
Exchange where I will create the rule programmatically? On the server? Is
possible?



Any help would be greatly appreciated.

Thanks
Bogdan Tarla

Software engineer
 

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