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.

Então, resulta que isso estava correto, caso alguém estivesse em dúvida. Eu estava apenas olhando para isso porque estava tentando enviar um e-mail de teste para mim mesmo…

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

Então, se o seu tempo de “última visita” for maior que a configuração email time window mins, o e-mail será ignorado.

Estranho. A descrição na página de configurações para ‘email time window mins’ diz apenas: “Aguarde (n) minutos antes de enviar qualquer e-mail de notificação, para dar aos usuários a chance de editar e finalizar suas publicações.”

Então, ou a descrição está errada, ou está incompleta e essa variável também está cumprindo uma dupla função para determinar o que significa “recentemente” neste site em particular. Apostaria que ela está cumprindo essa dupla função.

Sim, posso confirmar. É usado conforme descrito na descrição da configuração e também para determinar quando alguém não é mais “visto recentemente”.

@pfaffman leva o prêmio, então. Alguém marque a resposta dele como correta. :slight_smile:

Veja também Discourse Meta - The Official Support Forum for Discourse, onde você pode ativar a preferência de usuário ‘email-me-harder’: