locked
Prevent delete the original item when drag it to another folder. RRS feed

  • Question

  • Hi,

    When drag an item to anther folder, I don't want to delete it from the original folder. By default, outlook performs a "Move" action which will delete the item in the original folder. Is it possible to make it a "Copy" action when drag an item to another folder?

     

    • Moved by 许阳(无锡) Friday, January 13, 2012 3:55 AM end-user issue (From:Outlook for Developers)
    Thursday, January 12, 2012 6:29 AM

Answers

  • Use MAPIFolder.BeforeItemMove event - it has atheCancel parameter that you can set to true.
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!
    • Marked as answer by Malone Ma Thursday, February 2, 2012 5:59 AM
    Wednesday, January 18, 2012 6:18 AM

All replies

  • Sure, hold the Control key when dragging.
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!
    • Proposed as answer by 许阳(无锡) Friday, January 13, 2012 3:55 AM
    Thursday, January 12, 2012 6:57 AM
  • Hi Malone,

     

    Thanks for posting in the MSDN forum.

     

    Your issue seems an end-user issue. I’d recommend you post it in the Answer forum for better support.

     

    @Dmitry,

     

    Thanks for your great work.

     

    Have a good day,

     

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Friday, January 13, 2012 3:55 AM
  • Maybe I made this confusing...

     

    I'm writing an Outlook add-in C#. One of the requriement is prevent user moving an email from one folder to another. I can't find any simple way to accomplish this. Is there any suggestion? Thanks

    Friday, January 13, 2012 10:43 AM
  • Use MAPIFolder.BeforeItemMove event - it has atheCancel parameter that you can set to true.
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!
    • Marked as answer by Malone Ma Thursday, February 2, 2012 5:59 AM
    Wednesday, January 18, 2012 6:18 AM