# Restore Mailing List Mode Daily Summary

**URL:** https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761
**Category:** Plugin
**Created:** [19 juni 2017 om 17:47 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761 "2017-06-19T17:47:36Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [15 september 2018 om 01:45 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/22 "2018-09-15T01:45:20Z")

</div>

Just merged it. Thanks @david!

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [15 september 2018 om 18:42 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/23 "2018-09-15T18:42:10Z")

</div>

thanks a lot @joebuhlig and @david for your quick help. works perfectly fine.

---

<div class="post-metadata">

### Author: ![Lauren\_Magnuson](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Lauren\_Magnuson](https://meta.discourse.org/u/Lauren_Magnuson)
#### Post date: [16 december 2018 om 06:28 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/24 "2018-12-16T06:28:37Z")

</div>

Hi Matthew, just wondering if you ever found the cause of your problem? i think I’m experiencing the same issue, where the plugin is installed but doesn’t seem to be functioning or sending out summaries.

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [23 januari 2019 om 22:11 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/25 "2019-01-23T22:11:48Z")

</div>

hi @joebuhlig, we are using discourse-mlm-daily-summary and it works fine for the most part.

one thing: there are some of our 1000 users where the daily summary is not send out. i checked a lot of options and cant find a pattern.

i checked the source code and found this part being crucial. is there more code that might be part of the decision if a user gets the daily summary?

```
  def target_user_ids
    # Users who want to receive daily mailing list emails
    enabled_ids = UserCustomField.where(name: "user_mlm_daily_summary_enabled", value: "true").pluck(:user_id)
    User.real
        .activated
        .not_suspended
        .not_silenced
        .joins(:user_option)
        .where(id: enabled_ids)
        .where(staged: false)
        .where("#{!SiteSetting.must_approve_users?} OR approved OR moderator OR admin")
        .where("date_part('hour', first_seen_at) = date_part('hour', CURRENT_TIMESTAMP)") # where the hour of first_seen_at is the same as the current hour
        .where("COALESCE(first_seen_at, '2010-01-01') <= CURRENT_TIMESTAMP - '23 HOURS'::INTERVAL") # don't send unless you've been around for a day already
        .pluck(:id)
  end

```

i checked:

- user\_mlm\_daily\_summary\_enabled is enabled for all users
- users are all not\_suspended, not\_silenced, staged:false
- users have all been around longer than a day
- site setting must\_approve\_users is false
- first\_seen\_at is set for all users (wasn’t for some in the beginning and i suppose if there is no ‘hour’ of first\_seen\_at no summary is being sent, right?)
- i don’t know what .real and .activated is

do you have any idea where else i can check?

thanks in advance, etienne

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [23 januari 2019 om 22:23 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/26 "2019-01-23T22:23:58Z")

</div>

Can you confirm that the users have their preferences set correctly?

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [23 januari 2019 om 22:31 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/27 "2019-01-23T22:31:42Z")

</div>

you mean ‘user\_mlm\_daily\_summary\_enabled’?  
yes - is enabled via API by us for all user - and deactivated via CSS in the preferences (cant be disabled by users). i checked this setting in the database for all users.

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [23 januari 2019 om 22:32 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/28 "2019-01-23T22:32:52Z")

</div>

by the way: these users DO get other mails from discourse …

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [23 januari 2019 om 22:35 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/29 "2019-01-23T22:35:49Z")

</div>

Anything in `/logs` that seems relevant? It’s been quite a while since any tweaks have been made to this so I’m guessing something may have been deprecated by now?

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [23 januari 2019 om 22:41 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/30 "2019-01-23T22:41:43Z")

</div>

no relevant entries in ` /logs`

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [24 januari 2019 om 13:10 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/31 "2019-01-24T13:10:36Z")

</div>

How about in admin/email/skipped?

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [24 januari 2019 om 13:27 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/32 "2019-01-24T13:27:14Z")

</div>

thanks for the tip, but no skipped mails beside “anon”-users (anonymized by discourse)

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [28 januari 2019 om 21:41 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/33 "2019-01-28T21:41:32Z")

</div>

hi @joebuhlig,  
after looking further into this we found what caused that users didnt get the daily summary:

all users that have been added after the latest commit on sept 15 2018 have a value `'t'` or `'f'` in the field `value` of table `user_custom_fields`, while the plugin expects `'true'` or `'false'`.

we suspect that in the changes of the last commit something went wrong and type bolean and text got mixed up.

we would very much appreciate if you could have a look and maybe fix this. we are relying on the plugin for the purpose of our discourse-installation - sending information to parents about whats going on in the school of their kids once a day.

thanks, etienne

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [30 januari 2019 om 02:50 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/34 "2019-01-30T02:50:10Z")

</div>

Got it. I’ll get the ProCourse team on this one. But note that this one doesn’t fall under our list of ProCourse owned plugins so it may take a bit to complete.

Regardless, thanks for deep diving to find the solution here.

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [30 januari 2019 om 11:41 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/35 "2019-01-30T11:41:52Z")

</div>

thanks a lot for looking into this! would be great to see a fix - whatever timeframe. we now have a workaround for the moment (fixing those entries by hand in the database ;-).

---

<div class="post-metadata">

### Author: ![Taunusbahner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/taunusbahner/32/125050_2.png) [@Taunusbahner](https://meta.discourse.org/u/Taunusbahner)
#### Post date: [31 januari 2019 om 09:03 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/36 "2019-01-31T09:03:05Z")

</div>

Hello,

how can i do a translation for this plugin?

My community is german based and its better when we have our native language in this plugin.

My second question is. How can i change the template of the summary?  
Under the New topics and Topic updates section are listened the categories.  
But my wish is that are the category names again under every topic name in the list.

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [31 januari 2019 om 15:47 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/37 "2019-01-31T15:47:48Z")

</div>

Here you are:

> [@Add translation to a plugin](https://meta.discourse.org/t/add-translation-to-a-plugin/54748):
>
> go to the github repository of the plugin, e. g. [discourse-canned-replies](https://github.com/discourse/discourse-canned-replies). go to /config/locales folder of the plugin. you should see some yml files, like client.en.yml and server.en.yml. the client file is for the text parts in client side and is more important to be translated. texts in server file are only shown to admins. open the English yml file, as we want to first translate this file. press create new file button. copy the text in client.en.yml into the new file. chang…

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [7 februari 2019 om 21:04 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/38 "2019-02-07T21:04:11Z")

</div>

hey @joebuhlig, any news about the possible bugfix for mlm\_daily\_summary? thanks, etienne

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [8 februari 2019 om 14:59 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/39 "2019-02-08T14:59:53Z")

</div>

It’s probably at least a couple weeks out. We’ve got a handful of clients with ongoing work we’re trying to cover right now. If you want this to go into that queue, it would land at $200. Otherwise, we have to wait for a lull in that work before jumping into one of these unsupported plugins.

---

<div class="post-metadata">

### Author: ![etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@etienne](https://meta.discourse.org/u/etienne)
#### Post date: [14 februari 2019 om 20:48 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/40 "2019-02-14T20:48:59Z")

</div>

hi @joebuhlig, as we are running the forum for the school of our kids to give parents a better insight in their participation and we are doing this as volunteers we dont have any money to spend. there is one feature though that might be interesting enough to raise money and if you could include it we would try to find the money:

exclude topics from the daily summary that have already been send to users because they are watching a topic.

or maybe thats already a hidden feature, we didnt find?

let us know if it would be an option for your team to add this and fix the bug in one package and what we would need to raise for this. what do you think?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [15 februari 2019 om 13:59 UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/41 "2019-02-15T13:59:57Z")

</div>

> [@etienne](#):
>
> exclude topics from the daily summary that have already been send to users because they are watching a topic

That’s a standard feature of Discourse that I think this plugin was designed to disable.

If you’re sending out daily summaries and don’t have to many messages per day and people know how to watch categories, the standard behavior might be all you need.

[Vorige pagina](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761.md?page=1)

[Volgende pagina](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761.md?page=3)
