我需要在交换服务器上将电子邮件标记为已读。
我使用以下内容来获取电子邮件,现在我需要将它们标记为已读
strQuery =
@"<?xml version=""1.0""?>
<g:searchrequest xmlns:g=""DAV:"">
<g:sql>
SELECT
""urn:schemas:mailheader:from"", ""urn:schemas:httpmail:htmldescription""
FROM
""https://********.*******.****/exchange/**.******/inbox/""
WHERE
""urn:schemas:httpmail:read"" = FALSE
AND ""DAV:contentclass"" = 'urn:content-classes:message'
</g:sql>
</g:searchrequest>";
我该怎么做?
SP
答案 0 :(得分:1)
"<?xml version=\"1.0\"?>"
+ "<a:propertyupdate xmlns:a=\"DAV:\" xmlns:d=\"urn:schemas-microsoft-com:exch-data:\" "
+ "xmlns:b=\"urn:schemas:httpmail:\" xmlns:c=\"xml:\">"
+ "<a:set><a:prop><b:read>" + 1
+ "</b:read></a:prop>"
+ "</a:set></a:propertyupdate>";