# Gmail filter: "Thanks!" and "You're welcome!"

**URL:** <https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674>\
**Category:** Factual Questions\
**Created:** [April 11, 2022, 5:01pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674 "2022-04-11T17:01:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Briny\_Deep](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/briny_deep/32/17188_2.png) [@Briny\_Deep](https://boards.straightdope.com/u/Briny_Deep)\
**Post date:** [April 11, 2022, 5:01pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/1 "2022-04-11T17:01:03Z")

</div>

I have one person who never fails to reply “Thanks!” whenever appropriate, usually Reply All. This is bad enough, right? But she also never fails to reply “You’re welcome!” to every email where anybody says “thanks.”

Is it possible to set up a filter that deletes or hides messages that contain ONLY those phrases? I need to be careful; it can’t delete a message that has the phrase buried somewhere in the text, or further down the chain of replies and forwards – that would be practically all of them. But when a new reply comes in with no more content than the bare words “thanks” or “you’re welcome”, I could really do with having that bypass my inbox.

If I could solve this for such emails from just one specific person, that would be 95% of the problem solved right there. I could reach out personally with a request, but guaranteed she’d be hurt and I’d be a heel.

Thanks! 😉

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [April 11, 2022, 5:10pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/2 "2022-04-11T17:10:04Z")

</div>

What mail system are you using? And what program to read the mail, if any?

The answer will likely be different depending on these.

---

<div class="post-metadata">

**Author:** ![Briny\_Deep](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/briny_deep/32/17188_2.png) [@Briny\_Deep](https://boards.straightdope.com/u/Briny_Deep)\
**Post date:** [April 11, 2022, 5:11pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/3 "2022-04-11T17:11:03Z")

</div>

Gmail, web-based, Chrome browser on a desktop. I don’t have any options.

---

<div class="post-metadata">

**Author:** ![Johnny\_Bravo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_bravo/32/493_2.png) [@Johnny\_Bravo](https://boards.straightdope.com/u/Johnny_Bravo)\
**Post date:** [April 11, 2022, 5:56pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/4 "2022-04-11T17:56:43Z")

</div>

I dug through gmail’s native search filters and couldn’t find any solution that wouldn’t risk unintentionally filtering other emails. There doesn’t appear to be an operator that says “filter emails that contain ONLY this precise message.”

I also have no idea what would happen if you started deleting messages inside ongoing email chains.

BigT is an accomplished scripter, though, so he might be able to come up with an external solution for you.

---

<div class="post-metadata">

**Author:** ![Briny\_Deep](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/briny_deep/32/17188_2.png) [@Briny\_Deep](https://boards.straightdope.com/u/Briny_Deep)\
**Post date:** [April 11, 2022, 6:02pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/5 "2022-04-11T18:02:07Z")

</div>

Thank you @Johnny_Bravo! That’s what I figured. @BigT, even if you were to very generously offer such a thing, please don’t trouble to do so, because there’s no way I’d be able to use a script – this is a very tightly controlled work computer.

I do delete the messages that contain the unneeded expressions as they come in. Since I don’t use Conversation View, this works fine. Appreciate all the thoughts here.

---

<div class="post-metadata">

**Author:** ![AHunter3](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ahunter3/32/368_2.png) [@AHunter3](https://boards.straightdope.com/u/AHunter3)\
**Post date:** [April 11, 2022, 7:24pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/6 "2022-04-11T19:24:15Z")

</div>

> [@Briny\_Deep](#):
>
> Gmail, web-based, Chrome browser on a desktop. I don’t have any options.

Well, unless it’s a work-issued computer you can’t install onto, you have the option of using an actual email program. They continue to exist precisely because they can give you more granular control.

[![](https://global.discourse-cdn.com/straightdope/original/2X/a/aeb4e3b375f01f1bb843349f858338b2128ecee6.jpeg) ](https://global.discourse-cdn.com/straightdope/original/2X/a/aeb4e3b375f01f1bb843349f858338b2128ecee6.jpeg)

---

<div class="post-metadata">

**Author:** ![Briny\_Deep](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/briny_deep/32/17188_2.png) [@Briny\_Deep](https://boards.straightdope.com/u/Briny_Deep)\
**Post date:** [April 11, 2022, 7:30pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/7 "2022-04-11T19:30:18Z")

</div>

Right, work computer, can’t install anything. This is what I meant by not having any options, but obviously that wasn’t very clear. I’d kill for a real mail client.

---

<div class="post-metadata">

**Author:** ![AHunter3](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ahunter3/32/368_2.png) [@AHunter3](https://boards.straightdope.com/u/AHunter3)\
**Post date:** [April 11, 2022, 7:31pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/8 "2022-04-11T19:31:32Z")

</div>

Ugh. Yeah that DOES suck.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [April 11, 2022, 7:33pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/9 "2022-04-11T19:33:38Z")

</div>

never mind (was going to suggest the thing the last paragraph of the OP says isn’t possible)

---

<div class="post-metadata">

**Author:** ![Briny\_Deep](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/briny_deep/32/17188_2.png) [@Briny\_Deep](https://boards.straightdope.com/u/Briny_Deep)\
**Post date:** [April 11, 2022, 7:37pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/10 "2022-04-11T19:37:07Z")

</div>

Oh, I could. Perhaps even should. But I’ve found in the Northwest Nice culture I live in, people just don’t ask other people to modify their behavior for any reason, in any tone. They will be offended for the rest of their lives. It really is a thing up here; it’s Not Done.

---

<div class="post-metadata">

**Author:** ![Briny\_Deep](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/briny_deep/32/17188_2.png) [@Briny\_Deep](https://boards.straightdope.com/u/Briny_Deep)\
**Post date:** [April 11, 2022, 7:38pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/11 "2022-04-11T19:38:39Z")

</div>

Just wanted to add that I’ve still spent less time in this thread than I do in an average month of opening and deleting emails that say “Thanks!” and “You’re welcome!”

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [April 11, 2022, 7:39pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/12 "2022-04-11T19:39:44Z")

</div>

This is your strictly-controlled work computer? So you’re reading and dealing with these superfluous messages On Company Time? Maybe there’s no problem with that. You’re getting paid for it.

---

<div class="post-metadata">

**Author:** ![Briny\_Deep](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/briny_deep/32/17188_2.png) [@Briny\_Deep](https://boards.straightdope.com/u/Briny_Deep)\
**Post date:** [April 11, 2022, 7:51pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/13 "2022-04-11T19:51:20Z")

</div>

hahaha. Sure, I get paid for the work of deleting emails while I’m on the clock. Don’t most people (hourly employees) get paid for the most tedious task they must do? But doesn’t everyone also like to increase efficiency a bit?

I get hundreds of emails a day, and every single one has to be read to see if I need to do something about it. Every little time savings helps me do my job better.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [April 11, 2022, 8:06pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/14 "2022-04-11T20:06:42Z")

</div>

I know what you mean. I am currently dealing with the same sort of sensitivity over someone who likes to send direct messages as a long stream of tiny fragments of sentences - like, instead of saying “Hi, how are you? It’s cold here today”, it’s:  
Hi  
How are you?  
It’s cold  
here  
today

(and each of these messages generates a notification sound, and there’s no way to tame that without turning off all notification sounds for all respondents in the app). I don’t want to tell them to stop doing that because it seems incredibly petty.

If this was happening in a business context where both ends of the conversation take place in the same company, then policies can be made to bring about sanity - the exact problems you’re describing (‘thanks’ emails and abuse of reply-all) were strongly discouraged by the email policy I wrote for the last company I worked for.

---

<div class="post-metadata">

**Author:** ![pjd](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pjd/32/3009_2.png) [@pjd](https://boards.straightdope.com/u/pjd)\
**Post date:** [April 11, 2022, 8:07pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/15 "2022-04-11T20:07:45Z")

</div>

You can set up filters which should be able to do this sort of thing …  
Have a look [here.](https://support.google.com/mail/answer/6579?hl=en-GB)

You can set it to delete messages from a particular address, below a specified size,  
containing specified text etc.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [April 11, 2022, 8:15pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/16 "2022-04-11T20:15:17Z")

</div>

Just looking at the filtering options in gmail, I feel they are just a trifle too blunt for the surgery that is required here. - you can filter for: contains ‘thanks’ and less than a specific size in bytes, but unless this person replies in _exactly_ the same annoying way with great consistency, it’s only going to catch some messages.

Edit: also, I am not sure the size parameter in the filter is actually just talking about the message field. It could be referring to the entire transferred message including all of the headers and such.

---

<div class="post-metadata">

**Author:** ![Briny\_Deep](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/briny_deep/32/17188_2.png) [@Briny\_Deep](https://boards.straightdope.com/u/Briny_Deep)\
**Post date:** [April 11, 2022, 8:48pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/17 "2022-04-11T20:48:16Z")

</div>

> [@Mangetout](#):
>
> Edit: also, I am not sure the size parameter in the filter is actually just talking about the message field. It could be referring to the entire transferred message including all of the headers and such.

Right, and it seems like it would also include the whole chain of replies and forwards and inline images and so forth, even with conversation view off.

---

<div class="post-metadata">

**Author:** ![pjd](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pjd/32/3009_2.png) [@pjd](https://boards.straightdope.com/u/pjd)\
**Post date:** [April 11, 2022, 8:56pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/18 "2022-04-11T20:56:37Z")

</div>

Oh well…  
It could be worse - they could say “Your welcome !”

---

<div class="post-metadata">

**Author:** ![Heracles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/heracles/32/487_2.png) [@Heracles](https://boards.straightdope.com/u/Heracles)\
**Post date:** [April 12, 2022, 10:48am UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/19 "2022-04-12T10:48:07Z")

</div>

If the person sending the annoying replies is using GMail themself, it’s possible they’re just using the [auto-reply buttons in GMail](https://blog.prototypr.io/those-gmail-auto-reply-buttons-remind-us-how-basic-we-are-6306b13dee5b). Click on the blue “Thank you!” button, click Send.

I just tried it between two accounts, and did a “View Source” on the reply.

```auto
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="auto">Thank you!&nbsp;</div><br>

```

So there’s a nonbreaking space after the exclamation mark. You might be able to set a filter in your own GMail to detect “Thank you!” followed by the nonbreaking space, because normal people (or even Minnesota Nice™ people) wouldn’t put a nonbreaking space there.

But then you might get somebody replying to the thank-you note with some actually relevant info, and they would get filtered out too because they’d be quoting the thank-you.

---

<div class="post-metadata">

**Author:** ![Ponderoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ponderoid/32/19221_2.png) [@Ponderoid](https://boards.straightdope.com/u/Ponderoid)\
**Post date:** [April 12, 2022, 12:22pm UTC](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674/20 "2022-04-12T12:22:19Z")

</div>

If you run out of options for automatically deleting the messages, you could try writing up something that looks like an automatic response, something along the lines of:

> [@](#):
>
> _ **SPAM REJECTION NOTIFICATION** _
> 
> _Your mail was classified as spam by this system because it was 100% identical to several previous messages from the same sender. If you’re not a spambot, you can avoid this filter in the future by not sending duplicate messages repeatedly. Try adding unique informative content to every message you send._

Except for making it look like it was generated automatically, that message wouldn’t even be a lie, because “this system” includes the operator. 🙂

Have that ready in a text file to copy & paste ASAP every time you get one of their identical messages. You can shrug your shoulders and say “Sorry, that’s my new anti-spam system.”

[Next page](https://boards.straightdope.com/t/gmail-filter-thanks-and-youre-welcome/962674.md?page=2)
