# Disable/suspend digest emails

**URL:** <https://meta.discourse.org/t/disable-suspend-digest-emails/24377>\
**Category:** Product Support\
**Tags:** activity-summary\
**Created:** [1월 23, 2015, 10:33오후 UTC](https://meta.discourse.org/t/disable-suspend-digest-emails/24377 "2015-01-23T22:33:47Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [1월 24, 2015, 4:13오전 UTC](https://meta.discourse.org/t/disable-suspend-digest-emails/24377/9 "2015-01-24T04:13:44Z")

</div>

> [@DeanMarkTaylor](#):
>
> I specifically ran a query setting the digest emails to never be sent to anybody who hasn’t logged into the old forum for the past 1 year.

@pakl here’s a rails console command that should do that:

```plaintext
User.where('last_seen_at < ?', 8.months.ago).update_all(email_digests: false)

```

---

_[View the full topic](https://meta.discourse.org/t/disable-suspend-digest-emails/24377)._
