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.

Il s’avère donc que c’était correct, au cas où quelqu’un se poserait la question. Je regardais cela simplement parce que j’essayais de m’envoyer un e-mail de test…

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

Ainsi, si votre heure de « dernière connexion » est supérieure au paramètre email time window mins, l’e-mail sera ignoré.

Étrange. La description sur la page des paramètres pour « email time window mins » indique simplement : « Attendre (n) minutes avant d’envoyer des e-mails de notification, afin de donner aux utilisateurs la possibilité de modifier et de finaliser leurs publications. »

Donc, soit la description est incorrecte, soit elle est incomplète et cette variable sert également à déterminer ce que signifie « récemment » sur ce site en particulier. Je parierais volontiers qu’elle remplit deux fonctions.

Oui, je peux confirmer. Il est utilisé comme décrit dans la description du paramètre, et sert également à déterminer quand quelqu’un n’est plus « vu récemment ».

@pfaffman remporte donc le prix. Quelqu’un peut-il marquer sa réponse comme correcte. :slight_smile:

Voir également Discourse Meta - The Official Support Forum for Discourse où vous pouvez activer la préférence utilisateur « m’envoyer des e-mails plus fréquemment » :