Restrict Mailing List Mode to old users

Continuing the discussion from Restrict Mailing List Mode to Usergroup:

Hi Simon,

you wrote:

Actually with the settings below users with mailing list mode, after my knowledge, still receive mailings. Furthermore the explanation of “disable mailing list mode” says that it only disallows user to enable it.


Therefor I’m confused with your statement.

Are changes planned? Will the behavior of the mailing list settings change in near future?

1 Like

I thought the same thing myself, but looked into the issue again when we started setting disable mailing list mode to true by default. Unless I’m missing something, the Discourse code prevents mailing list emails from being sent when disable mailing list mode is set to true. That happens here: discourse/app/jobs/regular/notify_mailing_list_subscribers.rb at main · discourse/discourse · GitHub.

I have also tested this out on a few sites and see that mailing list emails are not sent when disable mailing list mode is set to true.

Assuming that what I wrote above is correct, that setting’s copy needs to be updated. The intended behaviour of the setting is to disable mailing list mode for the whole site.

The reason that re-enabling mailing list mode by deselecting the setting works is because when disable mailing list mode is set to true it doesn’t override the user options of any users who had previously enabled mailing list mode for their account. If mailing list mode is re-enabled, the user option that was previously selected will be respected.

If you are finding that mailing list emails are still being sent when disable mailing list mode is set to true, please let us know.

3 Likes

oh gosh. You’re right. People only got digests.
Thanks for clarification and your patience.

2 Likes

Not a problem. Thanks for pointing out the issue with the setting’s description. We’ll update it to make it clear that it completely disables mailing list mode.

3 Likes

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