In a support discussion titled ‘Restrict Mailing List Mode to Usergroup,’ JoshuaJoma seeks to limit mailing list mode to older, knowledgeable users while preventing new members from enabling it due to cost and thread clutter. codinghorror suggests using the site setting ‘disable mailing list mode,’ which hides the option but may not disable it for existing users. pfaffman proposes CSS-based hiding, while simon clarifies that the setting hides the UI toggle — meaning users who already enabled it can’t disable it via the interface. JoshuaJoma confirms concern about managing existing users’ preferences manually. simon offers two solutions: temporarily re-enabling the setting to adjust user preferences via UI, or using the Rails console to directly update user options (e.g., uo.update(mailing_list_mode: false)). Later, simon revises that with disable mailing list mode set to true, Discourse stops sending all mailing list emails entirely — though user preferences remain unchanged. Re-enabling the setting restores mailing list emails for those who previously opted in. This behavior is considered correct, effectively restricting mailing list mode to legacy users without requiring per-user CLI changes.
we have a userbase with a quite old in age community that uses our Forum a lot via mailing list mode and is used to this. We want to keep this group as they bring a lot of knowledge to the discussion.
As new members join I would like to restrict mailing list mode, because it is a constant thread and produces costs, to the old users and not allow new users to use it.
It just hides the setting. A possible downside of that is that it prevents users who had previously enabled mailing list mode from disabling it via the UI.
Thanks for your investigations!
So just to be sure.
If I disable mailinglist mode the old users will stay in mailing list mode. If some of them want to switch to the standard mode of receiving summaries they would have to contact me?
How would I then change their settings? I only see the same settings like them. Sounds like I would need CLI for every request?
After having selected the disable mailing list mode setting, the easiest way to disable mailing list mode for a user who had previously enabled it would be to temporarily deselect the disable mailing list mode setting, go to the user’s preferences page and disable mailing list mode for them, then enable the disable mailing list mode setting again.
The other approach would be to use the Rails console. For example, if you already know the user’s ID:
Since Discourse now sets the default value of the disable mailing list mode setting to true, I looked into this some more. When disable mailing list mode is set to true, no mailing list emails are sent from Discourse. This means that the setting completely disables mailing list mode for the site. The user’s options are not changed though - if you set disable mailing list mode to false after having set it to true, users who had previously selected the mailing list mode option will start to receive mailing list emails again. This seems like the correct behaviour to me.