# Completely disable mailing list mode?

**URL:** https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334
**Category:** Feature
**Created:** [December 31, 2015, 7:13pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334 "2015-12-31T19:13:53Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [December 31, 2015, 7:13pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/1 "2015-12-31T19:13:53Z")

</div>

Does any one know of a way to easily hide/disable the option for users to enable “mailing list mode”?

In my experience, this is almost always enabled by accident. People click it thinking it sounds good, but then they don’t realize what they’re actually signing up for and all the ensuing emails to come. I notice in my Mandrill stats, that for people that check this box, they quickly stop engaging with emails from Discourse.

While they were highly engaged before, the influx of emails causes them to either ignore or maybe set up a mail rule to auto-archive these emails. My assumption is they don’t know how to turn off what they turned on. This obviously is a negative consequence because they then stop seeing the regular digest emails too, etc.

I would rather just completely disable the option for all users. Is there any front-end or back-end way to do this cleanly?

Thanks!!

---

<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: [January 1, 2016, 1:31am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/2 "2016-01-01T01:31:43Z")

</div>

I wonder if we should put this option behind a confirmation dialog @sam since it is dangerous.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [January 1, 2016, 10:42am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/3 "2016-01-01T10:42:08Z")

</div>

Maybe this could also be decided dynamically: If statistics shows that the user ought to expect _a lot_ of emails (let’s say more than 10 per day), show the warning – but suppress it for low-volume installs?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 1, 2016, 10:44am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/4 "2016-01-01T10:44:17Z")

</div>

I am ok with adding a dialog here, but think we should wrap it in a div so it can be easily hidden via css. or maybe even site setting disable. Some less technical sites may want to avoid this option altogether.

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [January 1, 2016, 4:03pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/5 "2016-01-01T16:03:44Z")

</div>

Yeah my site is very untechnical and I think even a confirmation dialog might be confusing 😉

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [January 1, 2016, 6:57pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/6 "2016-01-01T18:57:02Z")

</div>

In fact, I thought that was how it worked for a very long time. The wording around the “mailing list mode” is rather inconsistent, so I never knew exactly what to look for in admin/user settings.

It’s not just dangerous as info-overload for the user, it’s a dangerous setting for big sites that are relying on free e-mail plans as well, since many users on mailing list mode will quickly bring you past your allowed limit of monthly sendouts.

---

<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: [January 1, 2016, 9:36pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/7 "2016-01-01T21:36:59Z")

</div>

Let’s start with a CSS class so it can be hidden then, that is easy.

@techapj can you take the css class for this one?

---

<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: [January 5, 2016, 6:00am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/8 "2016-01-05T06:00:40Z")

</div>

Another option is a warning div when you turn it on, but the page was loaded with it turned off.

> Warning: This will cause you to receive an e-mail for **every single post** made on the forum. This is usually a lot of e-mails. If this is not what you wanted, please uncheck the box.

---

<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: [January 5, 2016, 6:51am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/9 "2016-01-05T06:51:05Z")

</div>

> [@riking](#):
>
> > This is usually a lot of e-mails.

hey look it’s riking, you can tell because he’s advocating casual snark in the UI

---

<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: [January 5, 2016, 8:03am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/10 "2016-01-05T08:03:32Z")

</div>

Sure, I just added the CSS class `pref-mailing-list-mode`.

@jesselperry adding this custom CSS will do the trick:

```
.user-preferences .pref-mailing-list-mode {
    display: none;
}

```

* * *

To turn off mailing list mode for all the existing users, run this command in console:

```plaintext
./launcher enter app
rails c
UserOption.update_all(mailing_list_mode: false)

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 5, 2016, 8:19am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/11 "2016-01-05T08:19:35Z")

</div>

I really prefer a site setting, this leaves the problem of “what about all the existing members in the forum that have mailing list on”

---

<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: [January 5, 2016, 10:51am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/12 "2016-01-05T10:51:18Z")

</div>

Can’t they just run a ruby console command to reset the setting on behalf of all users? Perhaps @techapj could edit his post above to include those instructions.

---

<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: [January 6, 2016, 7:45am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/13 "2016-01-06T07:45:47Z")

</div>

Okay, I edited my post to add command for turning off mailing list mode for all the existing users.

---

<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: [January 23, 2016, 10:50pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/14 "2016-01-23T22:50:53Z")

</div>

I believe @erlend_sh had a nice UI proposal here can you link it Erlend?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [January 24, 2016, 2:25pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/15 "2016-01-24T14:25:32Z")

</div>

My suggestion was regarding the options on the user-end.

> [@More granular mailing list mode](https://meta.discourse.org/t/more-granular-mailing-list-mode/38107):
>
> I’m making this proposal in response to the following topics: I think the vast majority of the problems & shortcomings discussed in the topics above would be solved by slightly more granular options for the “mailing list mode”. Now that we have the option to [disable mailing list mode] altogether, I think it’s okay to give it a space of its own. I wanna go from this: (yes that’s a mockup but it accurately represents our current layout) (also note how “Send me an email for eve…

This topic on the other hand seems to be about disabling the option site-wide for all users, which I think is also an important setting.

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [March 4, 2016, 10:16pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/16 "2016-03-04T22:16:04Z")

</div>

Playing around with email settings some in anticipation of the [mailing list mode](https://meta.discourse.org/t/more-granular-mailing-list-mode/38107) work, I’ve put in a PR to move this to a site setting here:  
[https://github.com/discourse/discourse/pull/4059](https://github.com/discourse/discourse/pull/4059)

---

<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: [April 5, 2016, 6:51am UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/17 "2016-04-05T06:51:57Z")

</div>

There is a confirmation dialog on this setting now which estimates how many emails you’ll get per day so the user has an idea of how much ~~spam~~ email they’ll get by enabling this option. 💣

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [April 5, 2016, 2:38pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/18 "2016-04-05T14:38:20Z")

</div>

Love this solution. Thanks to whoever made it!

---

<div class="post-metadata">

### Author: ![joco](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@joco](https://meta.discourse.org/u/joco)
#### Post date: [January 2, 2017, 3:40pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/19 "2017-01-02T15:40:21Z")

</div>

> [@techAPJ](#):
>
> User.update\_all(mailing\_list\_mode: false)

I am trying to update all my users profiles to turn off mailing list mode, however, I get an error when issuing the rails command:

```
./launcher enter app
rails c
User.update_all(mailing_list_mode: false)

```

The error is:

```
ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column "mailing_list_mode" of relation "users" does not exist
LINE 1: UPDATE "users" SET "mailing_list_mode" = 'f'
                       ^
: UPDATE "users" SET "mailing_list_mode" = 'f'
from /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.1/lib/patches/db/pg.rb:90:in `exec'

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 2, 2017, 3:46pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/20 "2017-01-02T15:46:45Z")

</div>

Try `UserOption.update_all(mailing_list_mode: false)`

[Next page](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334.md?page=2)
