Remove Mail Item Event Doesn't Fire

  • Thread starter Thread starter Nenad
  • Start date Start date
N

Nenad

I am programming against Outlook 2003 using Visual Studio 2008.

I have noticed that ItemRemove event from
Microsoft.Office.Interop.Outlook.MAPIFolder object never fire for the last
item in the folder. More precise, it never fires if remove operation leaves
folder empty after execution.

Is it normal behavior?

Thanks
 
Not in OOM - on the MAPI level (that is where the problem is), TABLE_CHANGED
event is fired rather than TABLE_ROW_DELETED.
This was fixed in Outlook 2007 as far as I know.
Outlook Object Model does not track TABLE_CHANGED event, <plug> Redemption
(through the RDOItems.CollectionModified event) does -
http://www.dimastr.com/redemption/rdo/RDOItems.htm#events </plug>

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