# Don't trigger digests on migration?

**URL:** https://meta.discourse.org/t/dont-trigger-digests-on-migration/26345
**Category:** Migration
**Tags:** activity-summary
**Created:** [March 15, 2015, 7:00am UTC](https://meta.discourse.org/t/dont-trigger-digests-on-migration/26345 "2015-03-15T07:00:29Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [March 15, 2015, 1:25pm UTC](https://meta.discourse.org/t/dont-trigger-digests-on-migration/26345/5 "2015-03-15T13:25:43Z")

</div>

The digest mails aren’t sent _during_ the import, they are sent _after_ the import.  
During the import all emails are disabled, but as soon as the import is finished and Discourse is started, it sees a bunch of users that haven’t visited the forum for a certain amount of time and begins to send digest emails.

This is happening since @neil commited  
[https://github.com/discourse/discourse/commit/de167165e3c133436397e122ab3348985aa582f9](https://github.com/discourse/discourse/commit/de167165e3c133436397e122ab3348985aa582f9)

which has been discussed in

> [@Ning import script](https://meta.discourse.org/t/ning-import-script/24358/11):
>
> It would be an improvement if the script would set the imported users default email settings to be the same defaults as any new user. Specifically the digest = weekly. At the moment, the import leaves the digest setting unselected. It’s asking a lot of the users in a migration to have to proactively change settings and opt-in to the digest.

A quick solution would be to not automatically enable emails after the import (still it would send the digest mails as soon as emails would be enabled). A better solution would be some sort of grace period after an import where no digest emails should be sent, but I guess that’s not possible at the moment.

---

_[View the full topic](https://meta.discourse.org/t/dont-trigger-digests-on-migration/26345)._
