none
How Search Command could query mails only by Sender and Subjects ? RRS feed

  • Question

  • Hi all:

    I want to know about how to search remote mails by SEARCH on by "Sender" or "Subjects"

    here is my SEARCH cmd:

    <?xml version="1.0" encoding="utf-8"?>
    <Search xmlns="Search:" xmlns:airsync="AirSync:">
    <Store>
    <Name>Mailbox</Name>
        <Query>
            <And>
                <airsync:CollectionId>7</airsync:CollectionId>
                <FreeText>Presentation</FreeText>
            </And>
        </Query>
        <Options>
            <RebuildResults />
            <Range>0-4</Range>
            <DeepTraversal/>
            <airsyncbase:BodyPreference>
                <airsyncbase:Type>1</airsyncbase:Type>
                <airsyncbase:TruncationSize>5120
    </airsyncbase:TruncationSize>
             </airsyncbase:BodyPreference>
       </Options>
    </Store>
    </Search>
    

    Thanks.

    Monday, October 10, 2011 8:19 AM

Answers

All replies

  • Hi,

    Thank you for your question.  One of our engineers will follow up soon.

    Thanks,

    Edgar

    Monday, October 10, 2011 2:58 PM
    Moderator
  • Hi Nehe, I am the engineer who will be working with you on this issue. I am currently researching the problem and will provide you with an update soon. Thank you for your patience.
    Josh Curry (jcurry) | Escalation Engineer | US-CSS DSC Protocols Team
    Monday, October 10, 2011 7:04 PM
    Moderator
  • Hi Nehe, can you provide some additional details about the problem that you are having? Are you getting an error or just not the results you expect? I noticed that you are using the airsyncbase alias, but you did not include the alias in the Search element. You need to include that.

     

    <Search xmlns="Search:" xmlns:airsync="AirSync:" xmlns:airsyncbase="AirSyncBase:">

     


    Josh Curry (jcurry) | Escalation Engineer | US-CSS DSC Protocols Team
    Tuesday, October 11, 2011 4:14 PM
    Moderator
  • Hi JCurry:

    The problem I got is that I can not get the expected result, actually I don not know how to SEARCH only by "subject" or "Sender" , SEARCH leads a whole content matching so far on my Implementation.

    Thanks.

    Wednesday, October 12, 2011 4:21 AM
  • Is there any one still following on this issue?

    I am waiting for the answer.

     

    thanks

    Wednesday, October 19, 2011 12:41 AM
  • Hi Neha, it looks like the FreeText element supports Advanced Query Syntax (AQS) which you can use to specify which property to search. For example, you could use the following to search for emails that contain 'presentation' in the Subject property only "subject:presentation". The following articles provide additional details on what keywords are supported and how to build complex queries using AQS.

     

    http://technet.microsoft.com/en-us/library/bb232132.aspx#AQS

    http://msdn.microsoft.com/en-us/library/ee693615(EXCHG.140).aspx

     

    Please note that AQS is part of Exchange Server and is not part of the Exchange Server protocols. EAS and EWS just pass the value straight through to the Exchange Server. AQS is supported By Exchange Server 2007 and newer.


    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team
    Wednesday, October 19, 2011 11:01 PM
    Moderator
  • Thanks for your answer.

    I do use AQS in my SEARCH command like:

    <freeText>from:test subject:test</freeText>

    The mails I received are all matched "from:test" or "subject:test" in all E-mail content, so "from:" and "subject:" are not KEYWORD on server.

    Is this mean the server I tested dosen't implement AQS?

    Thanks.

    Thursday, October 20, 2011 6:31 AM
  • Hi Neha, as I mentioned in my previous post, AQS is supported by Microsoft Exchange Server 2007 and newer. If the AQS string is not being recognizedby the server it's probably either not a Microsoft Exchange server, or it's an older version.
    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team
    Thursday, October 20, 2011 3:00 PM
    Moderator