# Feature OP-13335 - Avoid redundant emails in case of @mentions and email reminder

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-13335

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 14.2.0 |
| Sprint | 14.2.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a user of OpenProject  
**I want to** get only one notification when I am @mentioned. Currently there are scenarios when I get a @mention email first and later another email reminder with exactly the same content.  
**so that** I receive less email spam.

**Acceptance criteria**

  - @mentions emails are sent immediately based on the user's email reminder settings (no change).

  - In case an email for an @mention is already sent (requires the user to have checked the 'Immediately when someone @mentions me' option in email notifications) notifications with `mention` as the topmost reason are not included in an email reminder mail. 

**Technical notes**

  - The column `reason` on the `Notification` model states the reasons.

  - The column `mail_alert_sent` on the `Notification` model states whether a direct mail has been sent out.

  - With those two pieces of information combined, the specified case can be identified and suppressed.
