View Single Post
  #2  
Old September 2nd 09, 03:16 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to catch Message Move Event.

That would partially depend on what version of Outlook. For Outlook 2003 and
earlier you only would have the Items.ItemAdd() and ItemRemove() events on
the destination and source folders to rely on. In Outlook 2007 you have the
Folder.BeforeItemMove() event you could also try.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashutosh Jogdande" wrote in message
...
Hi All,

Is there any way to Catch Message Move event through outlook addin,
when message/s are moved by using Email-rules or to Archive folders?

I am able to do this on manual message move by catching ItemRemove on
selected folder.
But while running a rule I am not getting Message Move/Remove event.

Code :
outlookExplorer.CurrentFolder.Items.ItemRemove += new
Microsoft.Office.Interop.Outlook.ItemsEvents_ItemR emoveEventHandler(Items_ItemRemove);


Thanks in advance,
Ashutosh




Ads