我不得不使用XML soap请求来使用Exchange 2010 EWS获取和设置邮件的已加星标状态。
如何获取邮件的“已加星标”或“收藏”状态?设置它也会很好!
答案 0 :(得分:1)
以下内容将使用XML for EWS 2010返回消息的已加星标状态:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010" />
</soap:Header>
<soap:Body>
<GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<ItemShape>
<t:BaseShape>Default</t:BaseShape>
<t:IncludeMimeContent>true</t:IncludeMimeContent>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject" />
<t:ExtendedFieldURI PropertyTag="0x1090" PropertyType="Integer"/>
</t:AdditionalProperties>
</ItemShape>
<ItemIds>
<t:ItemId Id="AAMkADg5MmFjNTViLTYwODUtNGNmYi04MzhjLTczZTdkOTZmYjllNwBGAAAAAABFQx5qtI0+R7P3jIlj8lBrBwCGvs35WFEvTaNeDfAlU93XAAAAFfBdAACGvs35WFEvTaNeDfAlU93XAAAAF4LGAAA=" ChangeKey="CQAAABYAAACGvs35WFEvTaNeDfAlU93XAAAAF+bq"/>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>