# "Daily updates" option for mailing list mode

**URL:** <https://meta.discourse.org/t/daily-updates-option-for-mailing-list-mode/45029>\
**Category:** Feature\
**Created:** [2016年五月31日 10:51 UTC](https://meta.discourse.org/t/daily-updates-option-for-mailing-list-mode/45029 "2016-05-31T10:51:01Z")\
**Posts on this page:** 3\
**Page:** 3

<div class="post-metadata">

**Author:** ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)\
**Post date:** [2017年五月26日 13:56 UTC](https://meta.discourse.org/t/daily-updates-option-for-mailing-list-mode/45029/41 "2017-05-26T13:56:58Z")

</div>

Fair enough 🙂

This command will turn on the “Activity Summary” (referred to as “digests” in the source code) for everyone, set the frequency to daily (1440 minutes), and include posts by new users:

`User.all.each { |u| uo = u.user_option ; uo.email_digests = true; uo.digest_after_minutes = 1440; uo.include_tl0_in_digests = true; uo.save! }`

Edit: I didn’t bother to handle the case where people have daily emails set up, as this will (eventually) be taken care of by the migration: [discourse/db/migrate/20170505035229\_migrate\_mailing\_list\_daily\_updates\_users\_to\_daily\_summary.rb at 0984763013bc18f62912d55bd3c12a83423b1b83 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/0984763013bc18f62912d55bd3c12a83423b1b83/db/migrate/20170505035229_migrate_mailing_list_daily_updates_users_to_daily_summary.rb)

---

<div class="post-metadata">

**Author:** ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)\
**Post date:** [2017年六月28日 10:43 UTC](https://meta.discourse.org/t/daily-updates-option-for-mailing-list-mode/45029/42 "2017-06-28T10:43:06Z")

</div>

FYI – there’s now a plugin allowing daily digests functionality:

> [@Restore Mailing List Mode Daily Summary](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761):
>
> For a variety of reasons the option for mailing list mode users to receive a daily summary email was removed. It turns out there are a handful of communities that relied on this feature and as such it provoked a [good discussion about the restoration of the feature](https://meta.discourse.org/t/please-restore-email-digests/63895). It was mentioned in that topic that I was working on this. Thanks to @lkramer and team for sponsoring this work! tada This plugin adds an option to the email preferences for a user and allows them to enable the daily emails. It i…

(This is currently essentially the old feature wrapped up as a plugin.)

---

<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:** [2017年六月28日 13:46 UTC](https://meta.discourse.org/t/daily-updates-option-for-mailing-list-mode/45029/43 "2017-06-28T13:46:40Z")

</div>



[上一頁](https://meta.discourse.org/t/daily-updates-option-for-mailing-list-mode/45029.md?page=2)
