How get the actual emailbody of email sent as riche text using PidTagRtfCompressed Canonical Property RRS feed

  • Question

  • I am trying to get the emailbody of the email, using ews java 2.0, sent in rich text format.

    Though I am getting the text format correctly, but i am not receiving the html format of the same.

    All I need is the exact representation of the emailbody in which the email was sent. So that I could reproduce the same in another system which requires html.

    Is it possible for me to get it?

    I tried using the PidTagRtfCompressed Canonical Property. I defined an extended property using the extended property definition with the corresponding tag(0x1009) and mapitype(binary) for the rtf emailbody. Though i did receive value in it but I am not able decode it to the corresponding readable value.

    Would it be possible to get the readable value out of this extended property? Would it be possible to get the html format as well?

    I would be grateful for any help.


    Friday, August 19, 2016 1:51 PM

All replies

  • Hello,

    Property name is PidTagRtfCompressed so you will have to decompress it. The algorithm is defined in Exchange Protocols document [MS-OXRTFCP].


    Désiré GOVIN Refresh IT Solutions

    Friday, August 19, 2016 3:31 PM