# Restore Mailing List Mode Daily Summary

**URL:** https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761
**Category:** Plugin
**Created:** [19 ביוני,‏ 2017,‏ 5:47pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761 "2017-06-19T17:47:36Z")
**Posts on this page:** 20
**Page:** 4

<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: [8 באוקטובר,‏ 2019,‏ 7:16am UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/62 "2019-10-08T07:16:02Z")

</div>

Good Morning,

these fix is working good. But one code problem i have seen.

> [@\_fuchs](#):
>
> Readd the method apply\_notification\_styles  
> in engine.rp add the Following at line 11 (first method in the class)

At the end of your code. I must write an `end` after `email`. Otherwise the code is not working in my fork.  
Yesterday i become two summarys. Today i will look if is again.

Thanks for your hotfix.

---

<div class="post-metadata">

### Author: ![dpb](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dpb](https://meta.discourse.org/u/dpb)
#### Post date: [28 בפברואר,‏ 2020,‏ 3:36pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/63 "2020-02-28T15:36:04Z")

</div>

Hello together,

for some days now, a lot of Mails are not sent. The Sidekiq error is:

```plaintext
Jobs::HandledExceptionWrapper: Wrapped ActionView::Template::Error: wrong number of arguments (given 1, expected 0)

```

Further information on the jobs:  
**Job** : `Jobs::UserEmail`  
**Arguments** : `{"type"=>"mailing_list", "user_id"=>4242, "current_site_id"=>"default"}`

Is this also caused by the mailing list mode plugin?  
We are running Discourse 2.5.0.beta1.

Any ideas how to solve this problem? Sidekiq already reports near 10k unsent mails ☹

---

<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: [29 בפברואר,‏ 2020,‏ 12:02pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/64 "2020-02-29T12:02:57Z")

</div>

There is a line in the mage template, I can’t remember it exactly, but it’s something to do with color, I think, and it’s calling a function that used to take an argument and now doesn’t. That’s not much of an answer, but more of a hint

This change also broke a plugin that u wrote that changes the mail template.

---

<div class="post-metadata">

### Author: ![\_fuchs](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_fuchs](https://meta.discourse.org/u/_fuchs)
#### Post date: [1 במרץ,‏ 2020,‏ 1:46pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/65 "2020-03-01T13:46:30Z")

</div>

Hey Jey, thanks for your hint!

Could you specify “mage tempelate”? I have no clue what you mean and can’t find anything in the gitlab commits.

Edit: Never mind. I found it! Will update how to fix the issue soon

---

<div class="post-metadata">

### Author: ![\_fuchs](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_fuchs](https://meta.discourse.org/u/_fuchs)
#### Post date: [2 במרץ,‏ 2020,‏ 6:27pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/66 "2020-03-02T18:27:57Z")

</div>

## How to fix “Wrong number of arguments” error that occurs since Feb 2020

Change that Broke the Plugin:  
[https://github.com/discourse/discourse/commit/e6e5ce3c5413b2fa85d87660bc443dfb1557576c#diff-02249fe8c00b2c8cc50e18db8a57fae0](https://github.com/discourse/discourse/commit/e6e5ce3c5413b2fa85d87660bc443dfb1557576c#diff-02249fe8c00b2c8cc50e18db8a57fae0)

Fix:  
In **app/views/user\_notifications/mailing\_list.html.erb** find this line:

` <%= raw(t 'user_notifications.mailing_list.why', site_link: html_site_link(@anchor_color), date: @since_formatted) %>`

and remove the` (@ancor_color)` so it reads

` <%= raw(t 'user_notifications.mailing_list.why', site_link: html_site_link, date: @since_formatted) %>`

Done!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3 במרץ,‏ 2020,‏ 4:05am UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/67 "2020-03-03T04:05:22Z")

</div>

flagged as #plugin:broken-plugin till this is fixed.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [3 במרץ,‏ 2020,‏ 8:40am UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/68 "2020-03-03T08:40:14Z")

</div>

Thanks @_fuchs!  
I have changed it and made a pull request.

~~Given the fact that @joebuhlig does not seem to be around much more ☹ you can also use our repository [GitHub - communiteq/discourse-mlm-daily-summary · GitHub](https://github.com/communiteq/discourse-mlm-daily-summary).~~

~~@sam maybe (at least temporarily) change the link in the start post to that one?~~

---

<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: [3 במרץ,‏ 2020,‏ 12:21pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/69 "2020-03-03T12:21:45Z")

</div>

Just merged the PR. Thanks for submitting that.

---

<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: [21 באוקטובר,‏ 2021,‏ 10:31am UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/70 "2021-10-21T10:31:23Z")

</div>

Is this plugin still being maintained? Is there another way to get daily summary emails?

---

<div class="post-metadata">

### Author: ![Flominator](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flominator/32/235031_2.png) [@Flominator](https://meta.discourse.org/u/Flominator)
#### Post date: [20 בדצמבר,‏ 2021,‏ 1:46pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/71 "2021-12-20T13:46:40Z")

</div>

Last commit to [the plugin](https://github.com/procourse/discourse-mlm-daily-summary) by @joebuhlig was in March 2020. He was last seen at this Discourse in June 2021.

Dear Joe, in case you read this: Thanks for this plugin! Is there any way to limit the summary emails to the categories the user actually selected as opposed to “all categories on the server”?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [20 בדצמבר,‏ 2021,‏ 3:39pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/72 "2021-12-20T15:39:47Z")

</div>

What do you mean by “the categories the user actually selected” ?

That plugin does take category permissions and notification mutes into account already.

---

<div class="post-metadata">

### Author: ![Flominator](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flominator/32/235031_2.png) [@Flominator](https://meta.discourse.org/u/Flominator)
#### Post date: [20 בדצמבר,‏ 2021,‏ 3:49pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/73 "2021-12-20T15:49:13Z")

</div>

So it takes all categories by default, except the ones that are muted, but it ignores if a category is watched/followed or not?

---

<div class="post-metadata">

### Author: ![Flominator](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flominator/32/235031_2.png) [@Flominator](https://meta.discourse.org/u/Flominator)
#### Post date: [31 בדצמבר,‏ 2021,‏ 8:41am UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/74 "2021-12-31T08:41:27Z")

</div>

It is like that. Cool. Thanks.

But: Is there any way to include the private messages in the daily summary? If one puts “Send me an email when someone messages me” to “never” in order not to receive other emails, one also doesn’t receive private messages via mail at all ☹

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [31 בדצמבר,‏ 2021,‏ 12:53pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/75 "2021-12-31T12:53:26Z")

</div>

What you’re saying is that if someone says they don’t want to receive emails for PM’s, they don’t get emails for PM’s. That sounds right. Or do I misunderstand?

---

<div class="post-metadata">

### Author: ![Flominator](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flominator/32/235031_2.png) [@Flominator](https://meta.discourse.org/u/Flominator)
#### Post date: [31 בדצמבר,‏ 2021,‏ 1:19pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/76 "2021-12-31T13:19:00Z")

</div>

Thanks for reacting. Actually it’s different: As I also mentioned in [https://meta.discourse.org/t/send-me-an-email-when-someone-messages-me/](https://meta.discourse.org/t/send-me-an-email-when-someone-messages-me/) , there are two settings one can put to “always”, “when away” and “never”:

1. “Send me an email when someone messages me” (actually means _“… when there is a new post in a category I watch/follow”_)
2. “Send me an email when someone quotes me, replies to my post, mentions my @username, or invites me to a topic”,

When I enable “daily summary”, I don’t want to get every message about every category I watch/follow via mail in parallel, right? Because that’s the point of a daily digest.

In order to achieve that, I put 1 to “never”. Then I only receive emails, when somebody replies directly to one of my posts, mentions me or invites me to a topic (2).

Now when somebody sends a private message, that one is not covered by 2, so I won’t receive it, until I visit the website. Why would I do that, since I receive all post via daily digest?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [31 בדצמבר,‏ 2021,‏ 1:23pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/77 "2021-12-31T13:23:58Z")

</div>

> [@Flominator](#):
>
> “Send me an email when someone messages me” (actually means _“… when there is a new post in a category I watch/follow”_ )

That is incorrect. From that same topic:

> [@"Send me an email when someone messages me"](https://meta.discourse.org/t/send-me-an-email-when-someone-messages-me/211695/2):
>
> In Discourse, message implies private message, while a topic is shared with a wider audience.

And also [here](https://meta.discourse.org/t/confusing-wording-for-email-notification-settings/116393/16).

---

<div class="post-metadata">

### Author: ![Flominator](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flominator/32/235031_2.png) [@Flominator](https://meta.discourse.org/u/Flominator)
#### Post date: [31 בדצמבר,‏ 2021,‏ 1:46pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/78 "2021-12-31T13:46:13Z")

</div>

When I deactivate “Send me an email when someone messages me” I don’t receive any notifications for any groups anymore. Is there maybe some other setting that interferes here?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [31 בדצמבר,‏ 2021,‏ 3:53pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/79 "2021-12-31T15:53:53Z")

</div>

Do you mean “any emails” or “any notifications” ? Sorry for the hair-splitting but it makes a big difference. The settings we’re discussing right now determine whether a notification generates an email. They should not interfere with the actual notifications being generated.

I suppose that “someone messages me” also includes group messages.

---

<div class="post-metadata">

### Author: ![Flominator](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flominator/32/235031_2.png) [@Flominator](https://meta.discourse.org/u/Flominator)
#### Post date: [31 בדצמבר,‏ 2021,‏ 4:25pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/80 "2021-12-31T16:25:23Z")

</div>

> [@RGJ](#):
>
> Do you mean “any emails” or “any notifications” ?

any emails.

> [@RGJ](#):
>
> I suppose that “someone messages me” also includes group messages.

Even if they not directly address you, but you’re just watching/following a category, yes.

Question remains: How does one receive one digest email per day, no separate mail for every topic and some kind of mail for personal messages send directly to himself/herself? 😉

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [31 בדצמבר,‏ 2021,‏ 5:05pm UTC](https://meta.discourse.org/t/restore-mailing-list-mode-daily-summary/64761/81 "2021-12-31T17:05:16Z")

</div>

> [@Flominator](#):
>
> Even if they not directly address you, but you’re just watching/following a category, yes.

Again: no. First drop down is for everything we call a “message”, second drop down is for everything that happens in categories/topics.

> [@Flominator](#):
>
> How does one receive one digest email per day, no separate mail for every topic and some kind of mail for personal messages send directly to himself/herself?

- Install the MLM Daily Summary plugin.
- Send me an email when someone messages me: **only when away**
- Send me an email when someone quotes me, replies to my post, mentions my @ username, or invites me to a topic: **never**
- Watch/track categories: `my/preferences/categories` and select all categories you want to include in the daily digest

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

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