Performance problems when catching Outlook::ItemsEvents.ItemAdd for ALL folders

J

juan

Hi!
I wrote an application in C++ that uses Outlook::ItemsEvents ItemAdd
event
to detect when an item is moved from ANY folder to ANY another folder.

So what I do is to traverse all folders and for each one I add this
event...
Problem is that if I have for example 3000 folders, then Outlook
startup
and Outlook shutdown will take several minutes....

Is there any other way to detect when the user is moving one email from
one
subfolder to another? I just need the target folder EntryID and the
email
sender......

Thanks
 
J

juan

Thanks ken, just for information, I rewrote my implementation
using extended mapi:

hr=HrAllocAdviseSink((LPNOTIFCALLBACK)SinkCallback,(void*)this,&Sink);
if( hr ) return false;
hr = m_lpMDB->Advise((ULONG)0, (LPENTRYID)NULL,
fnevObjectCreated|fnevObjectCopied|fnevObjectMoved,
Sink, &ulConnection);


Ken Slovak - [MVP - Outlook] ha escrito:
 

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