PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Does mapi expose "Remove item from folder" event ?

Reply

Does mapi expose "Remove item from folder" event ?

 
Thread Tools Rate Thread
Old 02-12-2003, 12:11 PM   #1
tomer
Guest
 
Posts: n/a
Default Does mapi expose "Remove item from folder" event ?



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.



  Reply With Quote
Old 02-12-2003, 04:23 PM   #2
Chris Koiak
Guest
 
Posts: n/a
Default Does mapi expose "Remove item from folder" event ?

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.
>
>
>
>.
>

  Reply With Quote
Old 03-12-2003, 02:55 PM   #3
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Does mapi expose "Remove item from folder" event ?

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.
> >
> >
> >
> >.
> >



  Reply With Quote
Old 03-12-2003, 07:30 PM   #4
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Does mapi expose "Remove item from folder" event ?

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.
>
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off