PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
Does mapi expose "Remove item from folder" event ?
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
Does mapi expose "Remove item from folder" event ?
![]() |
Does mapi expose "Remove item from folder" event ? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi, I understand that there is no easy way to detect when an item is deleted from a folder, Is it possible to do it using MAPI? does mapy expose events which outlook doesnot? thanks in advance. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
There's a ItemRemove event associated with the items
collection of every folder (folder.Items.ItemRemove) Chris >-----Original Message----- > >Hi, > >I understand that there is no easy way to detect when an item is deleted >from a folder, >Is it possible to do it using MAPI? >does mapy expose events which outlook doesnot? > > >thanks in advance. > > > >. > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
But that event doesn't provide the Item that was deleted and also
fires after the item was already deleted. An ItemAdd event handler on the Deleted Items folder's Items collection would trap all items not hard deleted (Shift+Delete). -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginners Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Chris Koiak" <anonymous@discussions.microsoft.com> wrote in message news:b41c01c3b8f0$a7ca9840$a601280a@phx.gbl... > There's a ItemRemove event associated with the items > collection of every folder (folder.Items.ItemRemove) > > Chris > > >-----Original Message----- > > > >Hi, > > > >I understand that there is no easy way to detect when an > item is deleted > >from a folder, > >Is it possible to do it using MAPI? > >does mapy expose events which outlook doesnot? > > > > > >thanks in advance. > > > > > > > >. > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Yes, when you subscribe to the folder contents table events
(IMAPITable::Advise), you will get a TABLE_ROW_DELETED event which will pass the value of the PR_INSTANCE_KEY property for that particular row. If you have cached the other message properties (such as PR_ENTRYID) along with PR_INSTANCE_KEY, you will be able to match which message had been deleted. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "tomer" <tomerdr@hotmail.com> wrote in message news:ei3hb1MuDHA.1888@TK2MSFTNGP10.phx.gbl... > > Hi, > > I understand that there is no easy way to detect when an item is deleted > from a folder, > Is it possible to do it using MAPI? > does mapy expose events which outlook doesnot? > > > thanks in advance. > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

