Outlook COM Add-In and trapping new messages...

A

Alan Seunarayan

Hello all,
I am currently developing an C# Add-In for Outlook XP and 2003, my
problem is that I need to trap emails as they are being delivered. I have
been responding to the NewMail event but that also gets fired if I drag an
unopened mail item into the folder I am monitoring.

Can anyone help ?

Thanks,

Alan
 
T

Tom Rizzo [MSFT]

You could possibly look at the properties on the item and see when it was
delivered. If it was not within the last 1 minute, ignore it. The other
thing you can do is capture the copy/paste operations to see if the item was
copied into the folder rather than delivered.

Tom
 

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