none
Is there a way to get the list of mail items that are moved or deleted during a Sync or Archiving operation in Outlook RRS feed

  • Question

  • Hi

    How to get the list of mail items that are moved or deleted from a folder, during a Sync or Archive operation in Outlook?

    This should be done from an VSTO add-in using C#, .NET 4.0.

    Is this feasible? If so how to!!!

    Thanks,

    Raghunathan S

    Wednesday, December 17, 2014 10:06 AM

Answers

All replies

  • Hello Raghunathan,

    The Outlook object model (nor Extended MAPI) doesn't provide any property or method for that.

    However, you may try to use the following events to track items:

    ItemRemove - is fired when an item is deleted from the specified collection.

    BeforeItemMove - is fired when an item is about to be moved or deleted from a folder, either as a result of user action or through program code.

    Wednesday, December 17, 2014 10:19 AM
  • Hi Eugene

    BeforeItemMove event does not fire during auto-archiving or synchronizing operations.

    But I want to track all the changes done on a folder when auto-archiving or synchronizing operations


    Wednesday, December 17, 2014 10:34 AM
  • You will not find anything in the OOM for that.
    Wednesday, December 17, 2014 10:50 AM
  • Just out of curiosity,

    is there any other way we can achieve this?? 

    Wednesday, December 17, 2014 12:14 PM
  • Try to handle Extended MAPI notifications. There is no other way.
    Wednesday, December 17, 2014 1:01 PM
  • Is it possible if we use the Add-in Express' MAPI Store Accessor tool?

    and by any chance do you have the tool for .NET 4.0 Framework?

    Thursday, December 18, 2014 11:07 AM
  • Yes, the MAPI Store Accessor can be used to handle Extended MAPI notifications.

    I don't work for Add-in Express, try to ask them instead.

    Thursday, December 18, 2014 12:09 PM
  • Hi Eugene

    Thanks for the prompt reply.

    Thursday, December 18, 2014 12:21 PM