104

Gmail now supports category:primary is:unread


33

When I had to search for a large e-mail, I went for the try-and-see-if-it-works method and used the search term size:5000000 to find e-mail of 5MB large, and that seemed to actually find all my emails larger than 5MB. I tried different numbers and it seemed to work consistently. Even though this operator isn't documented in the advanced search options, it ...


31

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 messages that: Do have MyLabel1 And do not have label inbox And do not have label MyBadLabel1 The tricks are: to get yourself out of conversation mode! (As @...


29

The category filter now knows how to filter the "Primary" inbox, so you can use in:inbox category:primary Or, to show just unread messages in the "Primary inbox": in:inbox category:primary is:unread Earlier answer: Doesn't look like the "category" filter knows how to filter to the "Primary" inbox, but you can do it by excluding the other categories ...


29

All Mail includes all the mail. Click on the All Mail button on the side bar. Right next to the < > buttons you should see a link 1-100 of xx,xxx → click on the link. The drop down should give you two choices: newest and oldest; select oldest. You should now be on the last page. Note: if the All Mail label isn't on the sidebar, it can be added via: Gear ...


25

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-alphanumeric characters such as underscore, full stop (period), "@", dash, etc.. So in peter.ford23@example.com there are 4 tokens: "peter", "ford23", "example" and "com"....


18

From the "About Gmail Search" documentation: Gmail doesn't recognize special search characters like square brackets, parentheses, currency symbols, the ampersand, the pound sign, and asterisks. As you appear to have already discovered, and my quick tests appear to confirm, this seems to include the exclamation mark character. I would assume that the ...


13

I wanted to move all the mails I had sent to people and had not received a reply, into a label in Gmail. After trying different queries for an hour, I realised multiple queries would do the trick. And this worked for me. 1. Search for in:inbox to:me category:personal Select all conversations that match this search, and Label as: Create new Label → ...


11

With the help of Google Apps Script, you can use regular expressions in Gmail to find messages that have the exclamation mark in the subject. The same script can be extended to apply Gmail filters to messages that match the expression. Update: Here's the snippet of Apps Script that should help you find the relevant messages: var pattern = "^!"; var ...


10

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 search box on a more specific time range. If you are using Google Apps Scripts, you can make your search using the best dates you have. Then you can filter ...


9

Here is the algorithm: Perform the search in your mails. Go to the selection of your messages (checkbox icon with small down arrow) and choose "Select all". As long as there are some other messages the GMail will prompt you with a message above your mailbox (see picture). Just click on this message and you now can delete/move/mark as spam all these ...


8

The TO:myemail@myemail.com will return all messages sent to myemail@myemail.com, including those where myemail@myemail.com is CCed (or BCCed in case you send the e-mail, since you can see the BCC). Use TO:myemail@myemail.com -CC:myemail@myemail.com -BCC:myemail@myemail.com instead. (the 'not' function is represented by a minus -) Parenthesis are only ...


7

Confirmed, as of 1-30-14, is:unread category:primary works. I think I've been using is:unread category:primary-inbox for a while but I think they just discontinued it, because it wasn't working for me today.


7

I decided to use this search operator: from:me -subject:"re:" -is:chats -is:draft -has:userlabels It's not perfect, but it cuts down on a lot of the conversations.


7

The option to disable the highlighting ("Turn off highlighting") is located in the "More ▼" menu between the search box and the email title


6

Someone has worked out a way to do this with Google Docs. The beauty of this method is that you don't need to rely on a third-party; everything stays within the Google ecosystem. The idea is that your Google Docs will connect to your Gmail account and compute the size of every message that’s present in your mailbox. If it finds a bulky message (size > 1 ...


6

Even though the two halves (From:...) and (To:...) are enclosed in parenthesis, I think you will get more accurate results if you prefix both addresses in each half with the From: or To: accordingly(see below). As it is now, I think it is searching for the second email address of each half anywhere in any message. Example: (From: johndoe@gmail.com OR From:...


5

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 systembash.com


5

Wildcards are not officially supported in Gmail, even if they are supported in Google Search. That said, I have been using wildcards to match hostnames and subject lines, and I have been doing this for 5+ years. However, since wildcards are an unsupported feature, the behaviour changes from time to time. Filters that once worked will stop working after ...


5

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 after Gmail first came out). I can see all mail going back to the original welcome email. See the screenshot below as evidence.


5

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|name|net|org|pro|tel|travel|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|...


5

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 star. -is:starred returns all conversations where at least one message is unstarred. Unfortunately when you look at the list in the GUI all the Conversations in ...


5

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:finances and then whatever you're searching for If it's nested, it will be marked by a dash so if I have a "Bills" folder under that it would be label:finances-...


4

A bit easier, just write the following in the search box: from: (*@mysite.com)


4

You can use Gmail search options. In the search box, ask for something like: from:(firstmailaddress@gmail.com OR secondmailadress@gmail.com)


4

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: http://jonathan-kim.com/2013/gmail-no-response/ It does a more sophisticated look up of who hasn't replied to your email, and you can tweak it to be even more ...


4

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://stackoverflow.com/a/12029701/1536038 // get all messages and retrieve 'date' and 'from' var eMails = GmailApp.getMessagesForThreads( GmailApp.search("label: ...


4

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, recovering what you happened to have labeled "inbox" doesn't seem practical. At best, you could look through your messages in "all mail" for the past month or so and see ...


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