Monitor 100 folders

C

Christie Sorenson

I have previously posted in the addins newsgroup about
this, but I'm thinking I may be going about this the wrong
way.

I have about 100 folders and I need to capture whenever
something is added to any of them (It would be a mailitem
moved from another folder to this folder). I currently am
using an addin and am capuring the itemadd event for each
folder, but it takes too long to loop through all of the
folders to add each of them to my wrapper class collection.

I was wondering if there is another way to find out when a
mailitem is added to any of these folders?

Thank you,
Christie
 
D

Dmitry Streblechenko \(MVP\)

Monitoring 100 folders it really not a very good idea. What exactly are you
trying to do? Besides being a performance bottleneck, keep in mind that the
notifications are dropped under heavy loads, plus ItemAdd event will not
fire under Exchange if more than 16 items are added at the same time.

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

Christie Sorenson

Yes, I have realized it is a bad idea. I've wanted to
make it seemless when the user moved an email to one of
these client folders, it would add a record to the
database. I have decided just to add a button and have
them chose which client folder to move it to and then I
record it. It's not too much work on their part and much
easier on mine!
Thanks,
Christie
 

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