Notification reasons in the email?

AI-generated summary

The discussion revolves around adding notification reasons to email notifications, similar to GitHub’s approach of including a cc pseudo-address that encodes the reason for the notification. nedbat initially suggests this idea, citing the limitations of current Gmail filters in distinguishing between different notification reasons. codinghorror requests clarification on the purpose of this request, prompting nedbat and jill to provide real-world examples of the need for this feature. Specifically, jill wants to filter notifications that mention her personally and flag them in her Gmail inbox. eLRuLL suggests implementing a solution similar to GitHub’s, where a mention email address is included in the recipients.

My users are asking if there is a way to write gmail filters to treat notifications differently based on the reason for the notification. I couldn’t find a way, but I’m reminded of how GitHub deals with this: https://help.github.com/en/github/receiving-notifications-about-activity-on-github/about-email-notifications. They add a cc pseudo-address that encodes the reason for the notification, which makes it easily available to filters.

Is there something like this I’m missing, or could it be added?

1 Like

I don’t understand the purpose of this request? Can you explain why this would be useful / necessary with some real world examples?

In my user’s own words:

Has anyone figured out how to create a gmail filter to flag/label/otherwise distinguish messages from discuss.openedx.org which directly mention you? I’ve tried filters like this, but they just match everything, since the email “to” field always matches my name:

list:(development.discuss.openedx.org) "@jill"
list:(development.discuss.openedx.org) +"@jill" 

I’m afraid my only options are to a) remember to check the /notifications/mentions page often, or b) change my Discourse notification settings so that I don’t get every post sent to my Forums inbox, just the direct mentions or followed posts… which would be ok, but I do like having a very searchable record in my inbox.

Hi @codinghorror :slight_smile:

I’m a member of the discuss.openedx.org community, and would like to:

  1. get all new posts to that forum in my Gmail Forums list, so I can scan them easily, and visit them when I need more info.
  2. make any posts which mention me personally be starred or otherwise flagged in my Gmail Inbox, so I know I need to respond to them ASAP.

Currently, I’ve got #1, which is great. But because all the Discourse notification emails are sent to my jill@email.com, and because gmail doesn’t have an email body: filter or recognise the special @ character in search text, there’s no way for me to specifically filter messages which have @jill in them.

Granted, these are flaws in Gmail’s filtering, not Discourse’s problem :slight_smile: But if there was a separate field somewhere with these notifications that provided the info I needed, I could work around these flaws.

maybe something like Github, where they include the mention@noreply.github.com email in the recipients, this would be super handy really.