IMAPIProp::CopyProps failed to copy attachments on Exchange 2010 for RTF email RRS feed

  • Question

  • I had a RTF message on Exchange 2010, and want to copy several properties along with the attachments to another RTF message.

    lpDstMsg->CopyProps(pRet, 0, NULL, &IID_IMessage, m_lpSrcMsg, 0 ,&lpProblems);

    This code works for Exchange 2007 for HTML EMAIL and RTF EMAIL, and works for Exchange 2010 HTML EMAIL, but failed for Exchange 2010 RTF EMAIL.

    I have 6 properties as:

    PR_MESSAGE_ATTACHMENTS (for copy attachments)
    PR_RTF_COMPRESSED (for RTF body)

    but lpProblems shows 0x8004010F MAPI_E_NOT_FOUND: CopyProps, failed on: Prop: 10060003, Error: 8004010f; Prop: 10070003, Error: 8004010f; Prop: 1008001e, Error: 8004010f; Prop: 10100003, Error: 8004010f; Prop: 10110003, Error: 8004010f;

    I checked the m_lpSrcMsg and lpDstMsg, all the properties are there. the CopyProps failed when we include the PR_MESSAGE_ATTACHMENTS.

    Can some expert help on this? very urgent!


    Tuesday, March 19, 2013 3:22 AM

All replies