[英]c# mark exchange email as read
我需要將電子郵件標記為在交換服務器上為已讀。
我使用以下方法獲取電子郵件,現在我需要將其標記為已讀
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
"<?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>";
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.