I have a couple on-going conversation threads in Gmail with a number of different people. Is there a way to setup a filter so that it will add a label if the body of any new, unread email contains my name? Then remove the label once I've read the email?
migrated from superuser.com Aug 26 '11 at 17:28
Remember that you can use any gmail search operator in a filter via the
I'll suggest you start by trying this:
Sorry can't help more, but until gmail filters can unapply a label, you will not be able to accomplish this via filters.
Potential work arounds would be:
Personally, I would look at #2 since learning scripting for Google Apps would pay off in the long run.
There is no search operator to restrict to the body of a message. I would recommend setting up a filter with your name in the "Has the words" field, and apply the label as your action. There is no need to add "is:unread" because filters apply to incoming messages.
Likewise you cannot remove the label via filter or take automatic action after the message has arrived. But there are a few other options that might help:
Finally, you could also consider setting up a Quick Link or a Multiple Inbox with the search query: is:unread yourname. The link or inbox would automatically update and remove messages from the view after you read them.
The first part: adding a label based on existing keyword is simple, but the second part I think is impossible, because there is no such trigger in Gmail that could cause a filtering operation once an e-mail is read.