Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

4.6 Fetch a Rights-Managed E-Mail Message by Using the ItemOperations Command

To fetch a rights-managed e-mail message, the client sends the ItemOperations command and sets the RightsManagementSupport element to TRUE.

The response includes the rights-managed e-mail message.

Request

<?xml version="1.0" encoding="utf-8"?>
<ItemOperations xmlns:airsyncbase="AirSync:" xmlns:airsyncbase="AirSyncBase:" xmlns="ItemOperations:" xmlns:rm="RightsManagement:">
  <Fetch>
    <Store>Mailbox</Store>
    <airsyncbase:CollectionId>5</airsyncbase:CollectionId>
    <airsyncbase:ServerId>5:1</airsyncbase:ServerId>
    <Options>
      <airsyncbase:BodyPreference>
        <airsyncbase:Type>1</airsyncbase:Type>
        <airsyncbase:TruncationSize>1024</airsyncbase:TruncationSize>
      </airsyncbase:BodyPreference>
      <rm:RightsManagementSupport>1</rm:RightsManagementSupport>
    </Options>
  </Fetch>
</ItemOperations>

Response

<?xml version="1.0" encoding="utf-8"?>
<ItemOperations xmlns:airsyncbase="AirSync:" xmlns:email="Email:" xmlns:airsyncbase="AirSyncBase:" xmlns:rm="RightsManagement:" xmlns="ItemOperations:">
  <Status>1</Status>
  <Response>
    <Fetch>
      <Status>1</Status>
      <airsyncbase:CollectionId>5</airsyncbase:CollectionId>
      <airsyncbase:ServerId>5:1</airsyncbase:ServerId>
      <airsyncbase:Class>Email</airsyncbase:Class>
      <Properties>
        <email:To>"T0SyncUser3" &lt;T0SyncUser3@contoso.com&gt;</email:To>
        <email:From>"T0SyncUser1" &lt;T0SyncUser1@contoso.com&gt;</email:From>
        <email:Subject>IRMEAS_Subj_Enc_DoNotForward_V141</email:Subject>
        <email:DateReceived>2010-06-30T23:44:31.053Z</email:DateReceived>
        <email:DisplayTo>T0SyncUser3</email:DisplayTo>
        <email:ThreadTopic>DoNotForward</email:ThreadTopic>
        <email:Importance>1</email:Importance>
        <email:Read>0</email:Read>
        <airsyncbase:Body>
          <airsyncbase:Type>1</airsyncbase:Type>
          <airsyncbase:EstimatedDataSize>64</airsyncbase:EstimatedDataSize>
          <airsyncbase:Data>This is a test message that we want to use.</airsyncbase:Data>
        </airsyncbase:Body>
        <email:MessageClass>IPM.Note</email:MessageClass>
        <email:InternetCPID>28591</email:InternetCPID>
        <email:Flag />
        <email:ContentClass>urn:content-classes:message</email:ContentClass>
        <airsyncbase:NativeBodyType>1</airsyncbase:NativeBodyType>
        <email2:ConversationId>…</email2:ConversationId>
        <email2:ConversationIndex>…</email2:ConversationIndex>
        <rm:RightsManagementLicense>
          <rm:Owner>0</rm:Owner>
          <rm:ContentOwner>T0SyncUser1@contoso.com</rm:ContentOwner>
          <rm:ReplyAllAllowed>1</rm:ReplyAllAllowed>
          <rm:EditAllowed>1</rm:EditAllowed>
          <rm:ReplyAllowed>1</rm:ReplyAllowed>
          <rm:ForwardAllowed>0</rm:ForwardAllowed>
          <rm:ExportAllowed>0</rm:ExportAllowed>
          <rm:ModifyRecipientsAllowed>0</rm:ModifyRecipientsAllowed>
          <rm:TemplateID>cf5cf348-a8d7-40d5-91ef-a600b88a395d</rm:TemplateID>
          <rm:ExtractAllowed>0</rm:ExtractAllowed>
          <rm:TemplateDescription>Recipients can read this message, but they can't forward, print, or copy content. The conversation owner has full permission to their message and all replies.</rm:TemplateDescription>
          <rm:ContentExpiryDate>9999-12-30T23:59:59.999Z</rm:ContentExpiryDate>
          <rm:TemplateName>Do Not Forward</rm:TemplateName>
          <rm:PrintAllowed>0</rm:PrintAllowed>
          <rm:ProgrammaticAccessAllowed>0</rm:ProgrammaticAccessAllowed>
        </rm:RightsManagementLicense>
      </Properties>
    </Fetch>
  </Response>
</ItemOperations>
Show:
© 2015 Microsoft