EzDevInfo.com

gmail-search interview questions

Top gmail-search frequently asked interview questions

How to filter empty drafts in Gmail?

I want to use Gmail's search to find all my empty replies or drafts (mostly because I quite frequency click in the reply text area and create a new draft without meaning to).

To test this out I created two draft emails, one with nothing at all (no subject, addressee, content, not even spaces), and one whose contents are asdf and searched for them like this:

  • in:draft smaller:513 — both drafts appear in search results

  • in:draft smaller:512 — neither appears in search results

How do I search in order to return ONLY the completely empty drafts?


Source: (StackOverflow)

How To Sort Emails When Searching In Gmail And How To Sort Messages By Unread?

Sometimes I am searching for messages from a specific sender and when I get the results and select all messages I cannot move them to "Folders". I can only move them to "Labels" which is not what I want because they will appear in "Labels" and in the Inbox as well which defeats the purpose of organizing messages in folders. How do I do what I want?

Also how do I sort messages by "Unread" in inbox and in search results? I also would like to sort by "Date" after sorting by "Unread".


Source: (StackOverflow)

Advertisements

How can I perform the same action on all results of a label/search in Gmail?

When I search, for example, "something label:somelabel" I get 1000 results paginated by 25 (my settings). 'Select all' selects only the 25 on the current page, I would like to delete all of them (1000). How to do it? I guess I could specify a filter to perform this search, delete the messages and apply this filter, but I have many queries and making filters for all would be PITA.


Source: (StackOverflow)

How to find the first mail of every contact within Gmail

I would like to find the first mail by every Gmail contact I got mails from.

So the pseudo filter would be:

  • get all mails
  • group by from-address
  • filter each group to show the first mail
  • sort the query by time-stamp (DESC)

Is this somehow possible with the Gmail search function or otherwise?


Source: (StackOverflow)

Is it possible to limit Gmail search results to unread messages?

Is it possible to limit Gmail search results to unread messages? This isn't about selecting unread questions from existing search results, which is covered in this question. I'm looking for a search flag that works for unread messages the way label:NAME_OF_LABEL does for labels.


Source: (StackOverflow)

How can I search for an attachment by filename pattern?

As the title suggests, I can search like so:

filename:{asf asx avi divx flv m4v mkv mov mp4 mpeg mpg ogm wmv}

Or

filename:example.pdf

But I want to search on filename with regex. Something like:

filename:*ampl*

... to find a file named example.xlsx.

Any ideas?


Source: (StackOverflow)

Search Gmail for emails without any CC recipients

I have an email address that should not receive email directly, and want to set up an auto-responder if an email is received without a CC included. Essentially, a search for:

to:me@email.com cc:[nobody]

Is this possible?


Source: (StackOverflow)

How to search/filter emails in Gmail according to recipients

I know this tutorial: https://support.google.com/mail/answer/7190

But when I use the TO: operator (TO:myemail@myemail.com), I get also emails where is used myemail@myemail.com for CC or BCC.


Source: (StackOverflow)

Gmail search for unstarred emails in a label

Have tried multiple way and none of them has worked,

Used : in:Test -is:starred and -is:starred in:TEST and other option, None of them worked, in:Test -is:starred has listed all started email in Test label, but the inverse is no working, please help me in resolving this.


Source: (StackOverflow)

Wildcard search in Gmail

Is wildcard search possible in Gmail?


Source: (StackOverflow)

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

I'd like to do a search in my Gmail to find out the mails that I sent without reply.

I tried this, but it doesn't work:

label:sent -has:reply

it seems that the 'has' operator only accept :attachment

Is there a way to search the un-replied mails?


Source: (StackOverflow)

How can I only search the Primary inbox in Gmail?

With the new Gmail inbox, I've gotten into the habit of ignoring everything that's not in the Primary inbox. I don't care about anything that's in any of the other inboxes (inboxen?). When I search for something, I only want to see things from my primary inbox. However, searching for something brings up results from all the inboxes. How can I only search the Primary inbox?


Source: (StackOverflow)

How to find the oldest email in Gmail

Just what the title says, how do I find the oldest email in Gmail? I know ho to find the oldest email from a specific person, but I’m interested in finding the oldest email, regardless of the sender or the label/folder it resides in at the moment. How can I do this without manually going through each label?


Source: (StackOverflow)

Searching Gmail for messages without a particular label

I need to find, in Gmail, a list of all my unread messages — which I can get via is:unread or label:unread or l:^u — which do not have the label "ZDNet."

In other words, my requirement is this:

I have 185 e-mails which are "unread" in my Inbox.
I have 174 "unread" e-mails which are labeled "ZDNet."
I need to find the 11 e-mails in my inbox that are not part of the group of 174.

How can I do this?


Source: (StackOverflow)

Search for “!” in Gmail subject

Does anyone know if in Gmail you can search all messages that have an exclamation mark in the subject?

I would like to create a filter that adds a red ! label to the messages that have an exclamation mark in the subject. But searching for subject:! results in all messages. I've tried things like /!/, /\!/, (/\!/), "!", but all these searches just give me all messages, not just those with ! in the subject.


Source: (StackOverflow)