# More email after recent update?

**URL:** https://meta.discourse.org/t/more-email-after-recent-update/150645
**Category:** Support
**Created:** [May 6, 2020, 7:57pm UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645 "2020-05-06T19:57:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![jonwgeorge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonwgeorge/32/167051_2.png) [@jonwgeorge](https://meta.discourse.org/u/jonwgeorge)
#### Post date: [May 6, 2020, 7:57pm UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645/1 "2020-05-06T19:57:56Z")

</div>

I’m not sure that this is the case. I could be going crazy. Did the timer for user recently seen in email sending get shorter since commit [a2c85f0845](https://github.com/discourse/discourse/commits/a2c85f08451056e11d6ae286b4e8214a1a66d8c4)? I restarted 2 days ago to troubleshoot an issue and seems like I’m getting emails more often than I was before.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 6, 2020, 8:22pm UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645/2 "2020-05-06T20:22:07Z")

</div>

User seen logic did change per @sam but it should be better (more sophisticated, more accurate), not worse. Can you elaborate?

---

<div class="post-metadata">

### Author: ![jonwgeorge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonwgeorge/32/167051_2.png) [@jonwgeorge](https://meta.discourse.org/u/jonwgeorge)
#### Post date: [May 6, 2020, 8:34pm UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645/3 "2020-05-06T20:34:39Z")

</div>

> [@codinghorror](#):
>
> it should be better (more sophisticated, more accurate)

It’s not that it’s worse per se, and I haven’t timed it to be exactly sure, but seems like if I haven’t been active in 45 minutes, I receive emails for topics I either created or participated in.

For example. I created a post at 10:02am today and the first response was at 12:45pm today. Between the topic creation and the first reply I was either reading other topics or in the admin panel of discourse and navigating pages at least every 15-20 minutes or so. But I still received an email about the reply at 12:45pm.

This could be the more accurate part and helps me understand when emails are getting sent and when they aren’t. The average age of my members is probably 46 so sometimes I have to explain _why_ the forum did something 😅

---

<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: [May 7, 2020, 6:14am UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645/4 "2020-05-07T06:14:07Z")

</div>

The TLDR here is that previously we would “think” you were online when in fact you were not. This was fixed.

From early days of Discourse `only when away` option was coupled to the `email_time_window_mins` site setting (which is set to 10 minutes by default)

One minor side effect is that this number is used both to **queue** emails **and** to check for when user was around last.

So, for example, if you want users to be emailed real quick, but only if you did not see them on the site for 30 minutes, you can not do that.

* * *

In the past we would email users 10 minutes after a post was made, if they were not seen in the last 10 minutes. (if only when away user pref is set)

This has not changed, but we fixed the bug where we “thought” you were around and in fact was not.

---

<div class="post-metadata">

### Author: ![jonwgeorge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonwgeorge/32/167051_2.png) [@jonwgeorge](https://meta.discourse.org/u/jonwgeorge)
#### Post date: [May 7, 2020, 1:05pm UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645/5 "2020-05-07T13:05:22Z")

</div>

> [@sam](#):
>
> This has not changed, but we fixed the bug where we “thought” you were around and in fact was not.

So to summarize it in case I start getting questions from my membership, emails are generated on topics you created/participated in and DMs when you are not active on the site for 10mins, and as of some recent changes you’ve gone from **thinking** a user is inactive to **knowing** a user is inactive?

If that’s the case, is there or will there be a setting to customize the inactivity timer?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [May 7, 2020, 1:25pm UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645/6 "2020-05-07T13:25:31Z")

</div>

> [@jonwgeorge](#):
>
> **thinking** a user is inactive to **knowing** a user is inactive

Correct. In the past we would count a user as ‘active’ if they left the browser open and walked away. Now we check for actual activity (scrolling, clicking) to decide whether someone is active.

> [@jonwgeorge](#):
>
> is there or will there be a setting

As Sam mentioned, it’s tied to the `email time window mins` site setting, so you can customize that.

---

<div class="post-metadata">

### Author: ![jonwgeorge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonwgeorge/32/167051_2.png) [@jonwgeorge](https://meta.discourse.org/u/jonwgeorge)
#### Post date: [May 7, 2020, 1:47pm UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645/7 "2020-05-07T13:47:21Z")

</div>

> [@david](#):
>
> it’s tied to the `email time window mins` site setting

Ooop.. My bad. Read right past that! Thanks for the details everyone!

---

<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: [May 8, 2020, 12:29am UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645/8 "2020-05-08T00:29:53Z")

</div>

> [@sam](#):
>
> So, for example, if you want users to be emailed real quick, but only if you did not see them on the site for 30 minutes, you can not do that.

This is important to note.

`email time window mins site`

Means **TWO** things. So for example say you set ` `email time window mins site` to 60:

1. All emails from Discourse to notify of new replies and so on will be **delayed** by 60 minutes.

2. Users with `only when away` set in profile will not be emailed if they were seen in the last 60 minutes.

The delay is currently coupled, we should probably add a new site setting here.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 7, 2020, 12:29am UTC](https://meta.discourse.org/t/more-email-after-recent-update/150645/9 "2020-06-07T00:29:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
