In an attempt to tidy up my exchange 2010 databases I thought I would get rid of all that rubbish that people send round to 'Everyone' saying "there's a blue car with it's lights on in the car park" or "does anyone want to buy some tickets for Take That on Saturday"
So, I want to run a search with these criteria:-
received:01/01/2011..01/01/2012 AND to:Everyone AND NOT from:John Smith
So that would be all the messages to the Everyone mailgroup from last year, except if they're from the CEO 'John Smith'
I appreciate I may not have the syntax right in this example with quotes and such, I'm more interested in the logic and parentheses.
I'm getting mixed results. Either I get an error about pat* and wildcards or I get more results than I know I should have, as if it's ignoring the NOT and just returning anything that matches any of those things. I have read up on AQS but it seems to be a little bit on the random side to me. Does anyone have a giant list of good examples of how to string Search-Query expressions together?