Query Builder not locating emails based on email address, only the display name will work.

I am trying to set up some search folders for Outlook 2010 for emails either to or from a specific domain name.  I am using the Query Builder to set up the logic for the search criteria.  

Here's an example of what I am trying to do.

I have three people from a specific company that I want all emails I either send them or they send me to go to.  Their email address are as follows:

Jane Doe <Jane.Doe@companyxyz.com>

John Doe <John.Doe@companyxyz.com>

Mary Smith <Mary.Smith@companyxyz.com>

Here is the issue I am having.  When I set up the criteria for the search folder, entering From --> Contains --> Jane.Doe@companyxyz.com (or any of the other addresses mentioned above) will return no results.  Entering From ---> Contains --> companyxyz.com will yield no results.  Only entering From ---> Contains --> Jane Doe will yield any results. 

If I use the From field in the standard Messages Tab of the Search Folder Criteria window then just entering companyxyz.com will give me all the messages.  The problem that I have is that I cannot set up any OR conditionals with this standard field which is why I am using the Query Builder.

My question is why doesn't the actual email address work for a search criteria in Query Builder and how can I set up a criteria for a domain name (@companyxyz.com) so that I can see all communication with a particular company?

February 9th, 2015 2:10pm

Hi,

This is the expected behavior of Outlook.

The Search Folder Criteria dialog has two From fields. One From field is under Messages tab and another From field is under the Advanced (or Query Builder) tab. The From field under Message tab uses email address while the From field under Advanced or Query Builder tabs uses the display name. So, when we want to use Query Builder to create a Search folder that filters by email address, the Query Builder ignores the email address and uses the display name instead.

Regards,

Steve Fan
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
February 12th, 2015 3:21am

how can I set up a criteria for a domain name (@companyxyz.com) so that I can see all communication with a particular company?

Try to install a CFG to expose the email address field then use that field in your query. We have a custom CFG available for download along with installation instructions available at Adding Extended MAPI Fields to Outlook. See:

http://www.slipstick.com/exchange/adding-extended-mapi-fields-to-outlook/

February 12th, 2015 3:32am

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

Other recent topics Other recent topics