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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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:

Nope, that's it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"juan" <juan_richeri@xxxxxxxxxxx> wrote in message
news:1155561896.851424.121380@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • Re: Url shown in message sometimes does not work!!!!
    ... MS MVP - Outlook Express ... I have made more tests on that message in Sent folder and the link to my website also does not work. ... You say you keep it in your Drafts folder. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Suddenly, to-do list is broken
    ... Milly Staples [MVP - Outlook] ... unsolicited mail sent to my personal account will be deleted without ... Locate the folder where Outlook.exe is located (typically, ...
    (microsoft.public.outlook)
  • Re: Aggravting problem
    ... MS MVP - Outlook Express ... I don't know how or why, but by digging around in the Folder ... Choose 'Extract One File From Installation Disk' ("Expand File" for WinXP). ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Outlook displays two identical Personal Folders
    ... Create a new mail profile and point it to reuse your current active .pst ... Milly Staples [MVP - Outlook] ... ||| Folder in the folder list. ...
    (microsoft.public.outlook.installation)
  • Re: Outlook Express 6 address book wont export
    ... MS MVP - Outlook Express ... highlight all the entries in the Folder, ... >>> when I click on the list name, it opens up and shows me the members ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)