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
Actually there is a way (I use it myself).
Please follow these steps once:
Go to your Gmail account --> Settings --> Filters and blocked addresses.
Find your "typical" filter from your existing list of filters and check it's box you find on the left side. (make sure you choose just one filter -at least till you get the hang of the process).
Now go to the ...
You've got it a bit backwards there. "Archive" simply means to remove the "Inbox" label. So, if something is "unarchived", it means it's still in your Inbox.
Just a note: AND is superfluous, because the search is implicitly "AND". Also, "NOT" does not work. - is used for negation.
I could not find a straightforward solution myself either because the plus (+) sign is reserved as a special character for "Results that match a word exactly". So I use the following alternative.
A decent alternative
Using the above search terms I can easily find anything but.
You don't need filters to correct this easily. Do this:
View all emails with the "Receipts & Online Orders" label, by going to the left-side navigation and clicking on your label, or doing a search.
Use the checkbox on the left side, above the message list, to select all emails.
If you have more than the ones displayed on the page, click the blue "...
Your issue lies in the fact that the "-" sign is used by Gmail as a search operator.
Please have a look at this link.
Search operators you can use with Gmail
| What you can search by | Search operator & example |
Run the search without in:inbox When I did this on a nested label here, I got more messages. Apparently I archived some of them.
Are the missing emails present without a search?
From your text example above, all these messages also have tag XY. Does this problem occur when you search for messages XY. If it doesn't then a work around is to create a new ...
Here are a few things you can try, although I admit it's tough to recreate the scenario you describe.
You mention that the problem seems to exist only for emails you have already answered. Are you sure that the in:Inbox search term isn't the problem? If you have responded and Archived the email thread, then it won't return when searching for in:Inbox
I ended up writing a script using the Gmail API from Google to do this - https://developers.google.com/gmail/api/. I ended up using the API to search all emails with particular keywords and add them all to a Contact Group. I then manually curated the group entries to filter out bad results, and finally, sent the email that I wanted to this Contact Group.
I found a different solution. I created more gmail accounts with names to match my requirements. Like "MyName.firstname.lastname@example.org" I registered this with my banks and credit cards. Then another like "MyName.email@example.com" Used it with all my visa applications and travel plans. Works out just fine.
[@Ale's working solution] works for all new emails. Following up within the question "How can I remove the inbox label on labeled emails?" there is a further explanation as anyone follow this question may have a lot of preexisting emails with 'inbox label':
How to remove the inbox label retrospectively
Search for emails in inbox by email ...
In your script, get the subject line of the email. Then split that text into an array. Then create labels for each word in that array.
Here is a great script that I've used to create nested labels: https://ctrlq.org/code/19895-create-nested-gmail-labels
I've found using this method to create labels cuts down a LOT on the label clutter.
If you are ...
You have to create a filter to apply a label "_toBeParsed" (or named as you pleased) to every incoming email.
The Google Apps Script should periodically search for each thread with that label, parse the subject and programmatically create ...