# Show categories in e-mail notifications

**URL:** https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814
**Category:** Feature
**Created:** [17 במרץ,‏ 2014,‏ 7:45pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814 "2014-03-17T19:45:54Z")
**Posts on this page:** 12
**Page:** 3

<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: [8 באוקטובר,‏ 2014,‏ 4:27pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/41 "2014-10-08T16:27:42Z")

</div>

> [@codinghorror](#):
>
> The email headers already include these list meta fields.

@codinghorror I’m not sure about @nukeador but my concern with the default headers currently in place is that a new `List-Id` is generated for each topic, which makes it impossible for users to create filters based on that List-Id:

> `List-Unsubscribe: <https://discourse.example.org/my/preferences>`  
> `Auto-Submitted: auto-generated`  
> `List-Id: <topic.618.discourse.example.org>`  
> `List-Archive: https://discourse.example.org/t/some-topic/618`

Ideal usefulness:  
`List-Id: <category.discourse.example.org>`

Next useful:  
`List-Id: <discourse.example.org>`

Least useful:  
`List-Id: <topic.618.discourse.example.org>`

---

<div class="post-metadata">

### Author: ![nukeador](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nukeador/32/107477_2.png) [@nukeador](https://meta.discourse.org/u/nukeador)
#### Post date: [8 באוקטובר,‏ 2014,‏ 4:48pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/42 "2014-10-08T16:48:15Z")

</div>

You are both right, I didn’t see that. And yes, list-id should be the category instead of the topic number to be useful for filtering.

---

<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: [8 באוקטובר,‏ 2014,‏ 4:49pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/43 "2014-10-08T16:49:50Z")

</div>

Ok, @techapj can you make that change to include category / subcategory there as indicated?

---

<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: [8 באוקטובר,‏ 2014,‏ 5:45pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/44 "2014-10-08T17:45:00Z")

</div>

Also, IMHO, `Precedence: list` needs to be in there as well as a default. Without that, we get “out of office” bounce-backs that turn into uncategorized topics on our Discourse site. 🙂

---

<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: [8 באוקטובר,‏ 2014,‏ 6:00pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/45 "2014-10-08T18:00:38Z")

</div>

Where is that header documented? @techapj fine to add that header, but maybe not for things like email confirmation of accounts, etc.

---

<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: [8 באוקטובר,‏ 2014,‏ 6:03pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/46 "2014-10-08T18:03:43Z")

</div>

> [@codinghorror](#):
>
> Where is that header documented?

[RFC 3834 - Recommendations for Automatic Responses to Electronic Mail](http://tools.ietf.org/html/rfc3834) in section 3.1.8. It’s interesting, because I just took it out a short while ago when I saw those other headers were now standard. It wasn’t an hour passed that I got an Outlook-generated OOO message responding to a digest, with someone’s phone number posted to our Discourse site. 😄

(So I put it back in, for now.)

---

<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: [8 באוקטובר,‏ 2014,‏ 6:26pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/47 "2014-10-08T18:26:31Z")

</div>

Good to know, I wasn’t aware of that one. We’ll add it!

---

<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: [8 באוקטובר,‏ 2014,‏ 8:24pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/48 "2014-10-08T20:24:40Z")

</div>

> [@nukeador](#):
>
> list-id should be the category instead of the topic number to be useful for filtering.

[https://github.com/discourse/discourse/pull/2860](https://github.com/discourse/discourse/pull/2860)

> [@downey](#):
>
> Precedence: list needs to be in there as well as a default.

[https://github.com/discourse/discourse/pull/2861](https://github.com/discourse/discourse/pull/2861)

---

<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: [8 באוקטובר,‏ 2014,‏ 10:18pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/49 "2014-10-08T22:18:13Z")

</div>

It’s funny, now that `List-Id` is unique by category, we probably won’t even use categories in email subjects… 😛

> [@downey](#):
>
> If the category were specified in the subject line or an e-mail header, those people, could then automatically filter and sort notifications.

But plenty of people love their [BRACKETS] so this is still a Good Thing. 👍

2 (biggest) lists left to move for us … fingers crossed.

---

<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: [8 באוקטובר,‏ 2014,‏ 10:19pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/50 "2014-10-08T22:19:12Z")

</div>

Luckily you can edit `email subject` site setting to taste to customize your email subject, right? 😉 Thanks @techAPJ!

---

<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: [13 באוקטובר,‏ 2014,‏ 7:07pm UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/51 "2014-10-13T19:07:41Z")

</div>

OK, I’ve tested everything I can on this. Subject lines, `List-Id`, `Precedence`, everything seems to be working as I’d expect.

🏁 🏆

---

<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: [13 בספטמבר,‏ 2017,‏ 3:26am UTC](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814/52 "2017-09-13T03:26:23Z")

</div>



[Previous page](https://meta.discourse.org/t/show-categories-in-e-mail-notifications/13814.md?page=2)
