2009-11-20 14 views
0

메시지에 액세스하여 Exchange Server 2003에서 메시지를 추출하려고합니다. 날짜별로 가져와야하지만 문제가 있습니다.WebDAV 날짜 범위 쿼리

여기에 코드 lsQuery = "<?xml version=\"1.0\"?>" + "<D:searchrequest xmlns:D = \"DAV:\" xmlns:m=\"urn:schemas:httpmail:\">" + "<D:sql>SELECT \"urn:schemas:httpmail:hasattachment\", \"DAV:displayname\", " + "\"urn:schemas:httpmail:from\", \"urn:schemas:httpmail:subject\", " + "\"urn:schemas:httpmail:htmldescription\" FROM \"" + lsRootUri + "\" WHERE \"DAV:ishidden\" = false " + "AND \"DAV:isfolder\" = false " + "AND \"urn:schemas:httpmail:hasattachment\" = true " + "AND \"urn:schemas:httpmail:read\" = false " + "AND \"urn:schemas:httpmail:date \" \"&gt;=\" CAST(\"2009/11/17\" as 'dateTime') " + "AND \"urn:schemas:httpmail:date \" \"&lt;=\" CAST(\"2009/11/19\" as 'dateTime') " + "</D:sql></D:searchrequest>";

답변