Gmail – Search for messages from non-contacts in Gmail

contactsgmailsearch

I'd like to clean up my Gmail inbox and want to search for messages from people who are not in my contacts.

Ideally it would be something like:

-from:(is:contact)

but is:contact isn't an actual advanced search operator/value.

Best Answer

It's not the most efficient way, but you get results.

Export your Gmail contacts into a .csv
Extract the names from the .csv (with Google Docs)
Create a massive filter with all the names
from: -(name1 OR name2 OR name3)

This last step will probably be best done with a string/file manipulation macro/script. If you'd like to try it, I can write one in AutoHotKey.