What is "user was seen recently" defined as and can I change the value?

Hi!

I saw that some emails on our Discourse community were suppressed because “User was seen recently”.

I couldn’t find it in the settings nor searching on the meta forum for an answer: what is recently defined as and is there an opportunity to change it somewhere in the settings?

Axel

“email time window mins” is the variable you’re looking for, but there is also a user setting with a name like “email notification even if online” and a corresponding default value in site settings.

Mostly it is good not to get an email for a message got have seen already. If your users love email, you can turn on mailing list mode.

Thank you so much! =)

How do you turn on mailing list mode?

Also i have had an issue. I have created groups and I am trying to tag the group name with @mention. Despite doing this, no one is receiving an email inviting them to the group topic. How do I mitigate this?

It’s in the user preferences but it can be turned off globally in site settings.

Do you mean you are trying to @-mention the group? To do that, you have to allow mentioning the group in group settings.

I have tried this and I am still the group members are not getting anything in email regarding being mentioned in the community.

Are they seeing a notification when they visit the forum?

They are yes once they have signed into the community. However our organization has asked that the various working groups can recieve the notice via email to draw them into the topics.

Have the users:

  1. Watch the category or topic you are doing announcements in
  2. Go to /my/preferences/emails and turn on " Send me email notifications even when I am active on the site".

So there is no way to be emailed if one of your groups get mentioned?

Oops, missed the at mention part.

If they’re getting a “@” notification, an email should get generated.

I don’t think this is correct. That setting is how long to delay sending an email after the post is created, to give the user time to edit it before it gets sent out. What we are discussing here is the mail being skipped entirely because the recipient has been on the site “recently.” What does “recently” mean, and can it be configured manually? The questions are unanswered so far as I can tell.

結局、これは正しいことがわかりました。もし疑問に思っていた方がいれば、参考までに。私は自分自身にテストメールを送ろうとして、これを見ていただけです。

seen_recently = (user.last_seen_at.present? && user.last_seen_at > SiteSetting.email_time_window_mins.minutes.ago)

つまり、「last seen at」の時刻が email time window mins の設定値より新しい場合、メールはスキップされます。

奇妙ですね。設定ページの「メール送信までの時間(分)」の説明には、「ユーザーが投稿を編集して確定させる機会を与えるため、通知メールの送信を(n)分間待機する」とのみ記載されています。

つまり、この説明が間違っているか、不完全で、その変数がこの特定のサイトにおける「最近」の定義を決定する役割も兼ねているかのどちらかです。私は後者である可能性が高いと賭けます。

その通りです。設定の説明にある通り使用されるだけでなく、「最近閲覧した」と見なされなくなるタイミングを判定するためにも使われています。

@pfaffman さんが賞を勝ち取りましたね。誰か彼の回答を正解としてマークしてください。:slight_smile:

また、Discourse Meta - The Official Support Forum for Discourse をご覧ください。ここでは「メールをより頻繁に受け取る」ユーザー設定をオンにできます: