Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

Outlook 2007 Query Builder (Search) AND, OR, NOT

Recommended Posts

I'm trying to use Outlook 2007's query builder to filter out multiple "From" addresses. I have a computer science understanding of Boolean logic, and I'm fine with AND, OR etc., but I'm having issues with NOT giving me correct results.

A query like this is fine for displaying all emails that have <fromAddress1> or <fromAddress2> in the "From" field.

from:(fromAddress1 OR fromAddress2)

What I really want is all emails that aren't from <fromAddress1> nor <fromAddress2>. No luck from the following, which yield very strange results including emails that are clearly from one of the addresses. A single NOT works fine, but I can't seem to filter out more than one.

NOT from:(fromAddress1 OR fromAddress2)from:(NOT fromAddress1 NOT fromAddress2)

Is there anyway to do this? The latter above seems to work fine for subjects etc, and I'm assuming it's applying an AND there by default from what I've read of the Outlook Query Builder.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...