36

In Gmail, how do you select all emails that are neither marked IMPORTANT nor STARRED?

0

10 Answers 10

36

The filters search against all messages, and then returns entire conversations (assuming the user has turned on Conversation View in the Settings). If any message within a conversation is returned by the query, then the entire conversation is returned, even if the conversation as a whole is not starred.

Therefore using the -in:starred will only work if ALL the messages in the thread are starred.

What is misleading about the Gmail UI is that starring the conversation, does not star all the containing messages, and therefor won't remove it from the filtered inbox when using the -in:starred search option, despite appearing to be starred in the main inbox view.

The syntax of the filter is not important, Gmail accepts both -in:starred and -is:starred with or without the AND keyword.

Of course, if you do not use Gmail in Conversation View (Settings → General → Conversation View), then the filter will work as expected.

2
  • 1
    Such a frustrating filter .. everyone uses conversation view
    – MikeMurko
    Oct 20, 2019 at 3:49
  • It is really a "bug" of Gmail UI/UX. It's incredible! Just uncheck / turn off the "Conversation View" option and the filter works as expected.
    – Felipe
    Nov 29, 2023 at 20:37
14

Open the mailbox that you would like to filter, In the search tab type:

-L:important

This filter will return all messages that are not marked IMPORTANT.

For starred messages, use:

in:inbox AND -in:starred

This filter will return all INBOX messages that are not STARRED.

0
9

This search query:

in:inbox AND (-in:starred OR -in:important) 
0
7

I know am pretty late. I had the same query. Unfortunately, the above answers aren't much help anymore.

You can find all the not important emails with this query. I am not sure about starred(I will update if and when I find something.).

label:unimportant

enter image description here

1
  • 1
    This is the only one that worked. If you use -L:important, it will still show threads with messages that one of the messages in the entire thread marked important. Only L:unimportant excludes thread with atleast on message marked important. Tx!`
    – rboy
    Jan 30 at 21:46
5

I used this search, which worked perfectly

in:inbox AND (-in:starred AND -in:important) 

It's based on this answer by mfcabrera, but I tweaked it slightly, replacing OR by AND

0
2

I used Al's version by searching but, added the last part for: in:inbox and (-in:starred or -in:important) is:unread

So, I generally got only un-read and un-starred items. I don't use the 'important' label so I removed that.

I then cycled through my inbox by a: checking all, b: unchecking and starring any items I wanted to save, then clicking 'mark as read'. I repeated that to clean out about 800 emails I really didn't need to see.

I've also been trying unroll.me as a free service that 'rolls up' all the emails from newsletters, news sources and want-to-read-someday emails. They then roll those all up into one email vs. 50 that I'll get this week. Pretty cool.

1

Use this query:

-is:important -in:starred
2
  • 2
    this does not work
    – user756
    Jan 30, 2017 at 17:03
  • the answer is now 'is' instead of 'in' so for example: -is:important and -is:starred Jan 10 at 23:11
1

In the search field the following worked for me:

label:unimportant !label:starred

The ! symbol is the logical not, in case you wanted to do a similar search in the future.

0

Although Google doesn't support selecting all unstarred messages in conversation view, there's a third-party paid product called SuperHuman which does.

It properly filters any conversations having at least one starred message when you search using the -is:starred keyword.

It's a product designed to make email usage with Google/G-suite more productive/efficient. I've been using it for 6 months, and though it costs $30/month, I admit it has saved me a lot of time.

Other email apps like Spark may support this as well. If archiving un-starred emails is part of your regular email workflow the apps may be the way to go.

0

Simplest Syntax

-is:{important starred}

Using the recommendations from Gmail Help, this is the simplest syntax to return messages that are neither Important nor Starred from anywhere except Spam and Trash.

To limit it to a specific label, such as Inbox, use:

in:inbox -is:{important starred}

Either of the following are also equivalent and two characters shorter, but much more confusing to read:

-is:{important starred -inbox}

is:{-important -starred inbox}

Notes

  1. Gmail's Conversation view (threaded messaging) will impact the reliability of any search.
  2. If neither a System Label, User label, Important, Starred, or a Category are specified in a search, is specified in a search, all messages will be searched except for those labeled Trash or Spam. For Example:
    subject:("New search operator added")
    

Documented vs. Undocumented

Gmail functionality has evolved over the 2 decades since its launch in 2004. Still, there is ongoing confusion about how Gmail searches work, which is further exacerbated by peculiar behaviors solely associated with Conversation View.

These three factors explain the variability of the answers provided as well as the differing levels of success users have had with each of them.

The following search operators are all currently valid, but not all are listed in the Gmail Help document, "Search operators you can use with Gmail"

Typical / Default Alternatives
OR OR 1{ } |
AND AND1, 2( )3
NOT - NOT1!4
System Labels 5 in:inbox is:inboxlabel:inboxl:inbox
Starred , Important6
is:starred in:starredlabel:starredl:starred
User Labels* label:mylabel is:mylabelin:mylabell:mylabel
Categories7 category:social in:socialis:sociallabel:sociall:social


 


Annotations

  1. ORANDNOT are all case sensitive (upper). If in lowercase, they are no longer operators but instead interpreted as search strings.
  2. AND is never needed as it is always implied in the absence of OR
  3. ( ) groups search terms, similar to AND however a little different.
    Equivalent: -john -bob-john AND -bob-(john bob)
  4. Warning: using ! instead of - can produce unexpected results.
  5. System label examples:*
    Inbox, Starred, 6 Snoozed, Important, 6 Sent, Scheduled, Drafts, All Mail, Spam, Trash
  6. Starred and Important are not treated as System/User Labels.
  7. Category examples:*
    Social, Updates, Forums, Promotions

* When using an alternative to specify a System/User Label or a Category, Gmail will usually rewrite the query with the default approach. There are exceptions, such as for Inbox as well as when the alternative is typed in uppercase.
 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.