51 votes
Accepted

Exclude label from a Gmail search?

You can do searches that exclude certain labels. That is, searches like this will do what you expect: (label:MyLabel1 AND NOT label:inbox AND NOT label:MyBadLabel1) That search will show you only ...
user avatar
40 votes
Accepted

Wildcard search in Gmail

Not in general, no. The Gmail search functionality works based on what I would describe as tokens. A token is any sequence of alphanumeric characters separated by a space or by other non-...
user avatar
20 votes
Accepted

Disable Gmail's highlighting of the search query in the email's body

The option to disable the highlighting ("Turn off highlighting") is located in the "More" menu (indicated with three vertical dots: "⋮") between the search box and the ...
user avatar
11 votes

Exclude label from a Gmail search?

You can try -(label:labelname) enter your search here for more labels to be excluded just continue the following syntax: -(label:Inbox) -(label:Updates) -(label:Social) enter your search criteria Hit ...
user avatar
9 votes

Is it possible to query Gmail messages by timestamp?

The specific times are mentioned in the documentation to show that the "after" operator is inclusive of the date given, while the "before" operator is exclusive of the date. There is no way to use the ...
user avatar
  • 306
6 votes
Accepted

Search Gmail for emails without any CC recipients

I don't think there is a complete solution to your question, but following filter is the closest thing I can come up. -cc:(*@*.(arpa|root|aero|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|...
user avatar
6 votes
Accepted

Gmail search for unstarred emails in a label

The issue is that the star is associated with a message, not the entire conversation. So when you use: is:starred it returns all conversations where at least one message in the conversation has a ...
user avatar
6 votes

Gmail Search Operator for general "today"

There's no "today" search operator, but you can filter to the last 24 hours with the newer_than operator. in:inbox newer_than:1d (Unfortunately "0d" doesn't work.) That should work for what you ...
user avatar
  • 51k
5 votes

How to find the oldest email in Gmail

There doesn't seem to be an "oldest" link in gmail anymore so using this link to go to a really big page number seems to work: https://mail.google.com/mail/#search//p99999 Method taken from ...
user avatar
  • 151
5 votes

Search in Gmail - How to search the mails without reply?

Just a few years late, but I wrote a Gmail plugin to help with this. It's been pretty popular so far and is probably used by thousands of people by now. You can find instructions for it here: https:/...
user avatar
5 votes

How can I find email messages older than 10 years in Gmail?

You probably do not have any mail older then 2006. Gmail will display all mail irregardless of its overall age. After checking my own account which was created in November of 2004 (only 7 months ...
user avatar
5 votes

Disable Gmail's highlighting of the search query in the email's body

With the most recent Gmail UI, the menu item has changed to an icon which you never would guess toggled highlighting until you actually hover over it to get the help text. It's in the top-right corner ...
user avatar
  • 171
5 votes
Accepted

How do I limit search to a folder in Gmail?

By folder, you mean label right? If you navigate to a label, it should already populate the search bar with the format needed. So if I have a label called "Finances" the search should be label:...
user avatar
  • 166
4 votes
Accepted

How to find the first mail of every contact within Gmail

With the following piece of code it is possible. Code function getFirstFrom() { // get active sheet and clear contents var sh = SpreadsheetApp.getActiveSheet(); sh.clear(); //http://...
user avatar
4 votes

Gmail inbox, all messages archived by mistake

Unfortunately, no, there's no activity log within Gmail that's accessible to users. The only "undo" option there is, really, is what's available immediately after performing an action. So, ...
user avatar
  • 51k
3 votes
Accepted

Google Drive files not showing in Gmail search results

It is a Labs feature: I don't know why it was turned off...
user avatar
  • 1,723
3 votes
Accepted

Add an artificial "label" in the Gmail label list?

Yes, there is a way. Enable the Quick links Lab, and add to it the URL of your Gmail search. To add the "Quick links" lab, do the following Go to Settings (cog wheel) > Settings Click on the Labs ...
user avatar
  • 41.6k
3 votes
Accepted

Can you define "me" in Gmail search?

Yes, it is possible, however not by using any kind of filter. If you have the account added in the settings menu under the "Accounts and Imports" tab of the settings then the emails will appear in ...
user avatar
3 votes

How to search for email of a particular date from years ago in Gmail

Try the before:{date} and after:{date} search operators., in addition to any search terms or sender filters you can remember. This can be done by typing them into the search bar, or by dropping down ...
user avatar
  • 131
3 votes

Google Drive files not showing in Gmail search results (Apps search feature disappeared)

Labs are experiments that sometimes graduate and become part of the main project, and sometimes don't. This would appear to be one of the latter. When a Lab is removed there's generally no ...
user avatar
  • 51k
3 votes
Accepted

Google Drive files not showing in Gmail search results (Apps search feature disappeared)

See the official Gmail Blog We’ll be implementing the instant results feature for Google Apps customers in late-2015 or early 2016*. With this improved experience on the horizon, we’ll be ...
user avatar
3 votes

How to search for a part of a word in Gmail?

You can also use Google Scripts to search for partial matches in Gmail. The script extracts the message body and performs the regex search.
user avatar
  • 1,918
3 votes

Search for a sender on Gmail

In the search bar at the top enter from:"email address"/
user avatar
  • 549
2 votes

Search in Gmail - How to search the mails without reply?

None of the previous answers worked for me. Searching for -subject:re and equivalents seem to match EVERY conversation. I believe this is because that search is positive for the first message in the ...
user avatar
  • 21
2 votes

How to filter empty drafts in Gmail?

Short answer AFAIK it's not possible that Gmail search return only empty messages when you are searching them by size. Alternatives Look for the messages that returns [in:draft smaller:513] to try to ...
user avatar
  • 41.6k
2 votes
Accepted

How can I search for an attachment by filename pattern?

Gmail doesn't recognize special search characters like [ ], ( ), &, #, *, and currency symbols. You can't use this symbols trying to search email or attachments. On the other hand, Google ...
user avatar
2 votes

Exclude label from a Gmail search?

As was already explained in the question, filters apply labels to individual incoming messages, so a conversation could have messages with and without the label that the user is looking to exclude ...
user avatar
  • 41.6k
2 votes

How to find the first mail of every contact within Gmail

I extended the correct answer by getting the subject too. Since we have the whole message object now, one can easily extend that to get all infos out of a mail. This version has the subject with a ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible