# After rebuild: lost email association + digest spam every 6 hours

**URL:** https://meta.discourse.org/t/after-rebuild-lost-email-association-digest-spam-every-6-hours/38841
**Category:** Bug
**Tags:** activity-summary
**Created:** [1. Februar 2016 um 17:10 UTC](https://meta.discourse.org/t/after-rebuild-lost-email-association-digest-spam-every-6-hours/38841 "2016-02-01T17:10:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hinerm](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hinerm](https://meta.discourse.org/u/hinerm)
#### Post date: [1. Februar 2016 um 17:10 UTC](https://meta.discourse.org/t/after-rebuild-lost-email-association-digest-spam-every-6-hours/38841/1 "2016-02-01T17:10:05Z")

</div>

After upgrading Discourse forum to version [b5bc430](https://github.com/discourse/discourse/commit/b5bc43023d94097160d4ff37b6e5f0074bf0f0dc) last week, it’s currently sending out digest e-mails every 6 hours.

Last week was the first time I rebuilt the Discourse container after an upgrade (using `launcher rebuild app`), which I did due to prompt messages during the upgrade.

In the Discourse web UI, when I look at `/admin/email/sent/` it looks like the association between “User” and “To Address” has been lost - e.g. pre-upgrade, user X is associated with e-mail address Y. Post-upgrade, no user is associated with e-mail address Y.

These may be unrelated issues, but I wanted to mention them both here since they both happened after the upgrade - and I was speculating that having lost the user association is causing Discourse to send the high-frequency digests.

Anyway, digest e-mails seem to only be sent to users who have not visited the site recently, as intended. But looking at the sent e-mail logs shows users receiving 4 digest e-mails in the past 24 hours.

Individual users reported setting their preferred digest e-mail frequency to every 3 days. I also tried clearing and resetting the server default values, with no effect (on the 6 hour mark, another digest e-mail went out).

If there’s any more info I can provide that would help, let me know.

Thank you!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [1. Februar 2016 um 17:12 UTC](https://meta.discourse.org/t/after-rebuild-lost-email-association-digest-spam-every-6-hours/38841/2 "2016-02-01T17:12:40Z")

</div>

I think if you upgrade again, you will find this issue resolved.

> [@Duplicate Meta digest emails this morning](https://meta.discourse.org/t/duplicate-meta-digest-emails-this-morning/38633):
>
> I got duplicate Meta digest emails this morning. One at 2:47am and 8:47am. I know these aren’t duplicates because of my email provider (FastMail & MailRoute), because they both have slightly different content. So they were both generated from Discourse.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [1. Februar 2016 um 17:13 UTC](https://meta.discourse.org/t/after-rebuild-lost-email-association-digest-spam-every-6-hours/38841/3 "2016-02-01T17:13:27Z")

</div>

Highly recommend that you upgrade to latest. That bug was fixed in [`d51019ee`](https://github.com/discourse/discourse/commit/d51019ee53e524cb18829cc16e918c81b84136e9) 😉

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [1. Februar 2016 um 17:13 UTC](https://meta.discourse.org/t/after-rebuild-lost-email-association-digest-spam-every-6-hours/38841/4 "2016-02-01T17:13:35Z")

</div>


