# 邮件列表模式——只向几位用户之外的用户不再发送

**URL:** https://meta.discourse.org/t/mailing-list-mode-not-sending-to-more-than-just-a-couple-of-users/80486
**Category:** Support
**Created:** [2018 年2 月 13 日 18:46 UTC](https://meta.discourse.org/t/mailing-list-mode-not-sending-to-more-than-just-a-couple-of-users/80486 "2018-02-13T18:46:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2018 年2 月 13 日 18:46 UTC](https://meta.discourse.org/t/mailing-list-mode-not-sending-to-more-than-just-a-couple-of-users/80486/1 "2018-02-13T18:46:31Z")

</div>

Guys,

I’ve noticed that if you set both:

- Email Digests
- Mailing List Mode

to **TRUE** for every user via the rails console, if you look at the email log in Admin you see a mix of _mailing\_list_ and _digest_ emails. Some users get a new email per post, whilst others seem to receive a complete digest.

Is this expected?

I’m wondering if this is somehow related to when a user last visited the site?

Thanks!

---

<div class="post-metadata">

### Author: ![notriddle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/notriddle/32/133055_2.png) [@notriddle](https://meta.discourse.org/u/notriddle)
#### Post date: [2018 年2 月 13 日 19:30 UTC](https://meta.discourse.org/t/mailing-list-mode-not-sending-to-more-than-just-a-couple-of-users/80486/2 "2018-02-13T19:30:32Z")

</div>

Don’t do that. It triggers [undefined behavior](https://en.wikipedia.org/wiki/Undefined_behavior).

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2018 年2 月 13 日 19:31 UTC](https://meta.discourse.org/t/mailing-list-mode-not-sending-to-more-than-just-a-couple-of-users/80486/3 "2018-02-13T19:31:12Z")

</div>

Yep, as I’ve discovered … it seems to have broken something …

Now despite setting _email\_digests_ to **FALSE** for all users and _mailing\_list\_mode_ to **TRUE** (confirmed in [Data Explorer](https://meta.discourse.org/t/32566?silent=true)), its failing to send mailing list emails for most users … how to recover? Is something set deeper in the database/triggered when user changes these settings themselves?

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2018 年2 月 13 日 19:31 UTC](https://meta.discourse.org/t/mailing-list-mode-not-sending-to-more-than-just-a-couple-of-users/80486/4 "2018-02-13T19:31:35Z")

</div>

Digest won’t be sent if someone was recently emailed. So it depends if they got a mailing list mode email recently.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2018 年2 月 13 日 19:44 UTC](https://meta.discourse.org/t/mailing-list-mode-not-sending-to-more-than-just-a-couple-of-users/80486/5 "2018-02-13T19:44:30Z")

</div>

Thanks, fair enough … but doesn’t seem to be sending mailing\_list emails now for most users … despite a new post

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2018 年2 月 13 日 20:21 UTC](https://meta.discourse.org/t/mailing-list-mode-not-sending-to-more-than-just-a-couple-of-users/80486/6 "2018-02-13T20:21:21Z")

</div>

Oh Oh! I think i’ve worked it out, [it’s because mailing\_list\_frequency is set to ZERO](https://meta.discourse.org/t/mailing-list-mode-broken-experience-in-transition-from-1-5-1-6/44863) for all failing users!

EDIT! Bingo! Set that to ‘1’ for all users and that fixed it!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024 年6 月 8 日 12:43 UTC](https://meta.discourse.org/t/mailing-list-mode-not-sending-to-more-than-just-a-couple-of-users/80486/7 "2024-06-08T12:43:30Z")

</div>

此主题已在 2306 天后自动关闭。不再允许回复。
