# Disable Mailing List Mode for Certain Posts

**URL:** https://meta.discourse.org/t/disable-mailing-list-mode-for-certain-posts/133173
**Category:** Support
**Created:** [November 12, 2019, 7:42am UTC](https://meta.discourse.org/t/disable-mailing-list-mode-for-certain-posts/133173 "2019-11-12T07:42:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)
#### Post date: [November 12, 2019, 7:42am UTC](https://meta.discourse.org/t/disable-mailing-list-mode-for-certain-posts/133173/1 "2019-11-12T07:42:13Z")

</div>

Is there a hook into the mailing list mode that could allow us to suppress emailing certain posts, say posts from a certain user? Could it conceivably be done with a plugin?

We have a plugin that auto-inserts a wiki post, as the first post in a topic, whenever a topic is created. The wiki post is just a template and has no value when it is first created- it will only gain value over time. But creating the wiki post triggers a nuisance email for those who have mailing list enabled. Half of our group uses mailing list mode. (That’s unusually high, I know, but we’re coming from a Google Groups background, so there’s some inertia.)

The wiki posts are automatically posted by a fictitious user named “Summary”, so that’s the most obvious criteria to filter on.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 12, 2019, 1:01pm UTC](https://meta.discourse.org/t/disable-mailing-list-mode-for-certain-posts/133173/2 "2019-11-12T13:01:07Z")

</div>

You could override the code that generates the emails in s plugin.

You might instead be able to have everyone set to ignore that user.

---

<div class="post-metadata">

### Author: ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)
#### Post date: [November 12, 2019, 8:49pm UTC](https://meta.discourse.org/t/disable-mailing-list-mode-for-certain-posts/133173/3 "2019-11-12T20:49:52Z")

</div>

> [@pfaffman](#):
>
> You might instead be able to have everyone set to ignore that user.

This works if I mute that user myself manually, so I guess I’ll write a plugin to make sure everyone automatically mutes that user.

> [@pfaffman](#):
>
> You could override the code that generates the emails in s plugin.

But I’m curious how this approach would work- any pointers?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 12, 2019, 8:56pm UTC](https://meta.discourse.org/t/disable-mailing-list-mode-for-certain-posts/133173/4 "2019-11-12T20:56:00Z")

</div>

> [@Mark\_Schmucker](#):
>
> ’m curious how this approach would work- any pointers?

Not quickly. It’s the same as overriding any method, though. You’d figure out what was generating those messages and override that to ignore the message if that user sent it. I didn’t do it in 5 minutes. . . .

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 12, 2019, 9:08pm UTC](https://meta.discourse.org/t/disable-mailing-list-mode-for-certain-posts/133173/5 "2019-12-12T21:08:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
