Folder count and event advise

  • Thread starter Thread starter pierson.samuel
  • Start date Start date
P

pierson.samuel

We are trying to monitor the ItemAdd event for email folders. On
advising the folders, we seem to be hitting a limit on the number of
folders that can be advised - 33.

Is this a known limitation ? or is it a memory issue local to our
environment. We created empty folders to eliminate the question of
number of emails in the folders. That didn't help the situation.

Thanks for your help.
 
There is a limit of 255 RPC channels/process when using MAPI. Each advise
sink and open Exchange object take 1 RPC channel.
What are you trying to do? If it is any kind of a sync solution, do *not*
use events, that's not what they are for. In Exchange, use
IExchangeExportChanges etc.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
We are trying this on mail folders in the Personal Folders store. Will
this RPC limit also have an impact there ?

How do you mean when you say that events should not be used for a sync
solution ? Infact this *is* for a sync solution to identify changed
emails. Is there a known blocker for this approach ?

The problem statement that we are trying to solve is to identify all
emails that are identified in a specific outlook Category. During sync,
we want to pick all these emails using OOM and send to the server.

Is there a better approach to identifying these emails other than using
events, since they can exist in any kind of folder hierarchy ? We want
to do this for Outlook versions 2000 to 2003. The Search object is not
available for OL2000.

Thanks for your help ..
 
Don't do that: events are designed for the UI updates, not for a sync.
The events are dropped under heavy loads, some Extended MAPI events are not
exposed by Outlook., etc.
There is no RPC channel limit for the PST provider since it does not use any
RPC channels.
Either scan the folders every once in a while looking for changes or develop
your own store provider - MS recently made it a lot easier with the
intruduction of the replication API:
http://blogs.msdn.com/stephen_griffin/archive/2005/09/28/475027.aspx

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