NewMailEx issue

A

arati

Hello

We are developing outlook addin which should work in outlook 2003
2007.
We have few custom header fields in the mail & then based on thes
fields in mail header, mails are updated in the database or land up i
inbox.

NewMailEx event on inbox was used for this purpose. The issue with thi
event is that we loose few of the mails, the event doesn't get fire
properly & the mail comes in inbox instead of database.

If we access outlook on few folders, we NewMailEx event is not firing
On some other time as well it is not getting fired.

What is best way to work on this functionality?

Can we overide send/receive button in outlook & write our ow
functionality on it? How to do it? There should not be separate butto
for this purpose. It should happen with send receive button?

Can we get events before NewMailEx? When we send receive command, ca
we detect the reponse from server on client?

How to do it?

Please guide.

Regards,
Arat
 
D

Dmitry Streblechenko

What do you mean by "If we access outlook on few folders, we NewMailEx event
is not firing"?
Do you mean a message simply gets created in a folder instead of being
delivered from, say, an SMTP server?
Have you looked at the Items.ItemAdd event?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
A

arati

If we send 50 or 100 mails in sequence from a tool, one after the othe
, the few mails get updated into database. While receiving the mails i
we access any of the folder the event doesn't get fired & the mail get
landed in inbox instead of the database.

Is ItemAdd event reliable? Will it get fired for every new mail ?

Somewhere read that NewmailEx is better. We have used ItemAdd for sen
folder
 
D

Dmitry Streblechenko

No MAPI events are reliable: they were designed for the UI purposes only and
are dropped under heavy loads.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

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