מצב רשימת תפוצה - לא נשלח ליותר מכמה משתמשים

סיכום מבוסס בינה מלאכותית

The discussion revolves around an issue with Mailing List Mode in Discourse, where emails are not being sent to most users despite correct settings. merefield initially set both Email Digests and Mailing List Mode to TRUE via the rails console, resulting in inconsistent email delivery—some users received digests, others received mailing list emails. notriddle warns against this approach due to undefined behavior. merefield later discovers that mailing list emails are not being sent even after reverting settings, suspecting a deeper database issue. neil explains that digests are suppressed if a user was recently emailed. merefield eventually identifies the root cause: mailing_list_frequency is set to zero for affected users, and correcting it to ‘1’ resolves the issue.

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!

Don’t do that. It triggers undefined behavior.

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), 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?

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

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

Oh Oh! I think i’ve worked it out, it’s because mailing_list_frequency is set to ZERO for all failing users!

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