none
Copy mail item RRS feed

  • Question

  • Greetings to all,

    Programmatically (C#)i would like to filter an outlook folder and copy the filtered  mail item

    into an IO system folder.

    Any points to proper reference would be more than welcome.

    Hind regards

    Denis

    Saturday, March 2, 2013 10:16 PM

Answers

  • Use MAPIFolder.Items.Find to find an item, then use MailItem.Copy to create a copy (return new MailItem), then call MMailItem.Move() to move the new item to the destination folder.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!

    • Marked as answer by Denis Patry Sunday, March 3, 2013 2:14 AM
    Sunday, March 3, 2013 12:22 AM

All replies

  • Use MAPIFolder.Items.Find to find an item, then use MailItem.Copy to create a copy (return new MailItem), then call MMailItem.Move() to move the new item to the destination folder.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!

    • Marked as answer by Denis Patry Sunday, March 3, 2013 2:14 AM
    Sunday, March 3, 2013 12:22 AM
  • Hello Dmitry,

    Very grateful for such a prompt and most helpful  reply.

    Cordially,

    Denis

    Sunday, March 3, 2013 12:47 AM