EWS BUG using query string search in Sent Items folder


Anyway do you receive results!!! Why?

retrieve server version (dummy request): -------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <GetFolder xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"> <FolderShape> <t:BaseShape>IdOnly</t:BaseShape> </FolderShape> <FolderIds> <t:DistinguishedFolderId Id="root"> <t:Mailbox> <t:EmailAddress>test@xyz.com</t:EmailAddress> </t:Mailbox> </t:DistinguishedFolderId> </FolderIds> </GetFolder> </SOAP-ENV:Body> </SOAP-ENV:Envelope> <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <h:ServerVersionInfo xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorBuildNumber="775" MajorVersion="15" MinorBuildNumber="35" MinorVersion="0"/> </s:Header> <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <m:GetFolderResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> <m:ResponseMessages> <m:GetFolderResponseMessage ResponseClass="Success"> <m:ResponseCode>NoError</m:ResponseCode> <m:Folders> <t:Folder> <t:FolderId ChangeKey="AQAAABYAAADDppkGQwjqT59Z4XSbhqnyAACnQwSW" Id="AQASAG5ld0FkbWluQGFzYW9uLmNvbQAuAAADk4oEIDnb0UClHmK1fyn5WQEAw6aZBkMI6k+fWeF0m4ap8gAAAwEAAAA="/> </t:Folder> </m:Folders> </m:GetFolderResponseMessage> </m:ResponseMessages> </m:GetFolderResponse> </s:Body> </s:Envelope> retrieve folder id: -------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Header> <RequestServerVersion xmlns="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2013"/> </SOAP-ENV:Header> <SOAP-ENV:Body> <FindFolder xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" Traversal="Shallow"> <FolderShape> <t:BaseShape>IdOnly</t:BaseShape> </FolderShape> <Restriction> <t:Contains ContainmentComparison="IgnoreCase" ContainmentMode="FullString"> <t:FieldURI FieldURI="folder:DisplayName"/> <t:Constant Value="Gesendete Elemente"/> </t:Contains> </Restriction> <ParentFolderIds> <t:DistinguishedFolderId Id="msgfolderroot"> <t:Mailbox> <t:EmailAddress>test@xyz.com</t:EmailAddress> </t:Mailbox> </t:DistinguishedFolderId> </ParentFolderIds> </FindFolder> </SOAP-ENV:Body> </SOAP-ENV:Envelope> <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <h:ServerVersionInfo xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorBuildNumber="775" MajorVersion="15" MinorBuildNumber="35" MinorVersion="0" Version="V2_4"/> </s:Header> <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <m:FindFolderResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> <m:ResponseMessages> <m:FindFolderResponseMessage ResponseClass="Success"> <m:ResponseCode>NoError</m:ResponseCode> <m:RootFolder IncludesLastItemInRange="true" TotalItemsInView="1"> <t:Folders> <t:Folder> <t:FolderId ChangeKey="AQAAABQAAAB7mOvT95GbSKM60YhMbleFAAAEEA==" Id="AQMkAGM4Y2UwZDNlLWQ3YzQtNGMyOS1hNGU4LTQxMQA5MmRiYgA1M2FmAC4AAAOTigQgOdvRQKUeYrV/KflZAQDDppkGQwjqT59Z4XSbhqnyAAADCwAAAA=="/> </t:Folder> </t:Folders> </m:RootFolder> </m:FindFolderResponseMessage> </m:ResponseMessages> </m:FindFolderResponse> </s:Body> </s:Envelope> search mails sent to info@abc.com: -------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Header> <RequestServerVersion xmlns="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2013"/> </SOAP-ENV:Header> <SOAP-ENV:Body> <FindItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" Traversal="Shallow"> <ItemShape> <t:BaseShape>IdOnly</t:BaseShape> <t:AdditionalProperties> <t:FieldURI FieldURI="item:ParentFolderId"/> <t:FieldURI FieldURI="item:Subject"/> <t:FieldURI FieldURI="item:DateTimeReceived"/> <t:FieldURI FieldURI="item:DisplayTo"/> <t:FieldURI FieldURI="item:DisplayCc"/> <t:FieldURI FieldURI="message:From"/> </t:AdditionalProperties> </ItemShape> <Restriction> <t:And> <t:IsEqualTo> <t:FieldURI FieldURI="item:ItemClass"/> <t:FieldURIOrConstant> <t:Constant Value="IPM.Note"/> </t:FieldURIOrConstant> </t:IsEqualTo> <t:Or> <t:Contains ContainmentComparison="IgnoreCase" ContainmentMode="FullString"> <t:FieldURI FieldURI="message:ToRecipients"/> <t:Constant Value="info@abc.com"/> </t:Contains> <t:Contains ContainmentComparison="IgnoreCase" ContainmentMode="FullString"> <t:FieldURI FieldURI="message:CcRecipients"/> <t:Constant Value="info@abc.com"/> </t:Contains> </t:Or> </t:And> </Restriction> <ParentFolderIds> <t:FolderId ChangeKey="AQAAABQAAAB7mOvT95GbSKM60YhMbleFAAAEEA==" Id="AQMkAGM4Y2UwZDNlLWQ3YzQtNGMyOS1hNGU4LTQxMQA5MmRiYgA1M2FmAC4AAAOTigQgOdvRQKUeYrV/KflZAQDDppkGQwjqT59Z4XSbhqnyAAADCwAAAA=="/> </ParentFolderIds> </FindItem> </SOAP-ENV:Body> </SOAP-ENV:Envelope> <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <h:ServerVersionInfo xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorBuildNumber="775" MajorVersion="15" MinorBuildNumber="35" MinorVersion="0" Version="V2_4"/> </s:Header> <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <m:FindItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> <m:ResponseMessages> <m:FindItemResponseMessage ResponseClass="Success"> <m:ResponseCode>NoError</m:ResponseCode> <m:RootFolder IncludesLastItemInRange="true" TotalItemsInView="0"> <t:Items/> </m:RootFolder> </m:FindItemResponseMessage> </m:ResponseMessages> </m:FindItemResponse> </s:Body> </s:Envelope>

Thank you
Bernd Frei

July 24th, 2015 10:49am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics