Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

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. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...