none
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_SUBJECT
    PR_RTF_IN_SYNC
    PR_MESSAGE_ATTACHMENTS (for copy attachments)
    PR_MESSAGE_CLASS
    PR_HTML
    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!


    hifan

    Tuesday, March 19, 2013 3:22 AM

All replies