# Gmail mute not working

**URL:** https://meta.discourse.org/t/gmail-mute-not-working/21000
**Category:** Feature
**Created:** [10.Октябрь.2014 03:51:04 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000 "2014-10-10T03:51:04Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![miststlkr](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@miststlkr](https://meta.discourse.org/u/miststlkr)
#### Post date: [10.Октябрь.2014 03:51:04 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/1 "2014-10-10T03:51:04Z")

</div>

The Vancouver Hack Space is rolling out Discourse as a replacement for a mailiong list and many users have it set to email every message and still use it like they did the old mailing list. I’ve noticed that when I mute a conversation in gmail’s web client, the conversation doesn’t get muted; you have to follow the link to the discourse interface and mute the thread from there. I don’t have the background or time to track this down, but thought someone may want to look into it if it is not a “feature”.

@funvill

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [10.Октябрь.2014 21:38:29 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/2 "2014-10-10T21:38:29Z")

</div>

Wait, how the heck is Discourse supposed to know that you ‘muted’ a thread in your email client?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10.Октябрь.2014 22:16:50 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/3 "2014-10-10T22:16:50Z")

</div>

I think he’s referring to mute by subject of email, or email headers.

Right now the list-related email headers include the _category_, as suggested by @downey, although they used to include the specific topic ID.

We’d need a bit more detail on how GMail handles mutes though; what fields / headers does it look at?

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [10.Октябрь.2014 22:33:37 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/4 "2014-10-10T22:33:37Z")

</div>

Here’s the gmail help page about muting conversations:

> **[Gmail Help](https://support.google.com/mail/?visit_id=639159111100073616-3916439427&hl=en&rd=2#topic=3394150)**
>
> Official Gmail Help Center where you can find tips and tutorials on using Gmail and other answers to frequently asked questions.

Not much information in there. I use gmail, but have never used this feature. I suspect the “conversation” is identified by subject.. which is also how gmail organizes emails into threads. If I change the subject line in a reply email it starts a new thread.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10.Октябрь.2014 22:38:59 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/5 "2014-10-10T22:38:59Z")

</div>

Well, the _subject_ should be stable, if you are being notified to a reply on a topic it’ll be the title of the topic.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [10.Октябрь.2014 22:45:01 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/6 "2014-10-10T22:45:01Z")

</div>

> [@tobiaseigen](#):
>
> I suspect the “conversation” is identified by subject..

Yes, looks that way.

> <https://webapps.stackexchange.com/questions/9482/how-does-muting-work-for-gmail>

I haven’t tested it, but I don’t think muting will work here anyway since the recipients email address is used in the `To` header.

But maybe changing the `List-Unsubscribe` header would be an option?  
Currently it (always?) links to [Discourse Meta - The Official Support Forum for Discourse](https://meta.discourse.org/my/preferences) which isn’t really helpful if I just want to stop tracking a specific topic.

**Feature request:** When a mail is sent because I’m watching a topic the `List-Unsubscribe` header should link directly to (the bottom of) the topic so that I can easily change the tracking state of the topic. When a mail is sent because I’m watching a category the link to the preferences is fine.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [10.Октябрь.2014 22:48:13 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/7 "2014-10-10T22:48:13Z")

</div>

> [@gerhard](#):
>
> Feature request: When a mail is sent because I’m watching a topic the List-Unsubscribe header should link directly to (the bottom of) the topic so that I can easily change the tracking state of the topic. When a mail is sent because I’m watching a category the link to the preferences is fine.

That reminds me of this idea:

[https://meta.discourse.org/t/notification-subscription-options/13328/7?u=mcwumbly](https://meta.discourse.org/t/notification-subscription-options/13328/7)

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [11.Октябрь.2014 02:36:00 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/8 "2014-10-11T02:36:00Z")

</div>

> [@codinghorror](#):
>
> We’d need a bit more detail on how GMail handles mutes though; what fields / headers does it look at?

As @tobiaseigen pointed out, Google tells us exactly what causes a message to be “un-muted” in the conversation:

> Muted conversations will only pop back into your inbox ready for your attention if a new message in the conversation is **addressed to you and no one else** , or if **you’re added to the “To” or “Cc” line** in a new message.

(emphasis added)

… both of which are currently true for Discourse topic notifications.

See also this feature request, which could “fix” this issue:

[https://meta.discourse.org/t/email-in-category-notifications-should-send-to-that-address/20935?u=downey](https://meta.discourse.org/t/email-in-category-notifications-should-send-to-that-address/20935)

---

<div class="post-metadata">

### Author: ![seanmonstar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seanmonstar/32/122123_2.png) [@seanmonstar](https://meta.discourse.org/u/seanmonstar)
#### Post date: [20.Декабрь.2014 05:09:47 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/9 "2014-12-20T05:09:47Z")

</div>

The way Github makes this work is by including the user’s email in the Cc instead of To.

Other mailing lists seem to use an alias instead, so the To address doesn’t look like it’s to you specifically.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21.Декабрь.2014 09:45:18 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/10 "2014-12-21T09:45:18Z")

</div>

> [@gerhard](#):
>
> When a mail is sent because I’m watching a topic the List-Unsubscribe header should link directly to (the bottom of) the topic so that I can easily change the tracking state of the topic.

This is a good idea and a better default, @techapj can you add it to your list?

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [21.Декабрь.2014 23:45:44 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/11 "2014-12-21T23:45:44Z")

</div>

To be consistent with mailing lists, it’d be nice if the “To” address was the same as the email-in address for the relevant category, if one exists.

---

<div class="post-metadata">

### Author: ![seanmonstar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seanmonstar/32/122123_2.png) [@seanmonstar](https://meta.discourse.org/u/seanmonstar)
#### Post date: [24.Сентябрь.2015 23:15:24 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/12 "2015-09-24T23:15:24Z")

</div>

I don’t know all the places that this may touch, nor how to write tests for this, but I’m posting here so that someone who is more familiar may be able to make this work?

In the [user notifications](https://github.com/discourse/discourse/blob/master/app/mailers/user_notifications.rb#L143), an argument would be needed to be added that the user’s email should be used in the `cc` field, instead of `to`, and set `to` to some other bucket. The argument would need to be looked for in [the message builder](https://github.com/discourse/discourse/blob/master/lib/email/message_builder.rb) to do this.

I **think** that only adding this argument on L143 of the user notifications would mean this would only affect mailing-list-like emails, and not any other notification, which should still be use the `to` address.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [04.Декабрь.2015 10:19:59 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/13 "2015-12-04T10:19:59Z")

</div>

> [@gerhard](#):
>
> When a mail is sent because I’m watching a topic the List-Unsubscribe header should link directly to (the bottom of) the topic so that I can easily change the tracking state of the topic.

@zogstrip implemented something even better via:

[https://github.com/discourse/discourse/commit/6669a2d94d76eea3b99b8c476d12b1eb66726b07](https://github.com/discourse/discourse/commit/6669a2d94d76eea3b99b8c476d12b1eb66726b07)

The link will redirect to preferences page where user will be able to select notification level for that particular topic.

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [04.Декабрь.2025 11:32:28 UTC](https://meta.discourse.org/t/gmail-mute-not-working/21000/14 "2025-12-04T11:32:28Z")

</div>


