Project

General

Profile

Actions

Defect #31745

closed

Mail notifications do not honor 'only_assigned' mail_notification setting

Added by Robert Chady over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

When a user selects 'only_assigned' for mail notifications, they still get emails for issues they are watching.

Digging in to the code, I see that Issue#notified_users calls notify_about?() to verify if a user should be notified about an update. Looking further though, I see that Mailer#deliver_issue_edit calls notified_users AND notified_watchers. The notified_watchers method does not appear to filter if a user wants to be notified about an update or not and just adds in all watchers as CC'd people.

Perhaps I am misreading it, but this seems like a bug. I verified this is still the case in redmine master as well as the versions I am running. Filing this under the 'Issues' category, but not sure if that is the best place for this or not. It seems to impact all versions of Redmine as well.


Related issues

Related to Redmine - Patch #24177: Change translation for label_user_mail_option_only_(assigned|owner)ClosedJean-Philippe Lang

Actions
Actions #1

Updated by Robert Chady over 4 years ago

Any chance at getting a little guidance on the best way to fix this?

Actions #2

Updated by Go MAEDA over 4 years ago

  • Related to Patch #24177: Change translation for label_user_mail_option_only_(assigned|owner) added
Actions #3

Updated by Go MAEDA over 4 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

It is the intended behavior. Watchers always get notifications no matter how "Email notification" setting in "My account" is set.

In earlier versions of Redmine, the text in Email notification setting was incorrect. The text for label "label_user_mail_option_only_assigned" has changed from "Only for things I am assigned to" to "Only for things I watch or I am assigned to" in Redmine 3.3.0. Please see #24177 and r16110.

Actions

Also available in: Atom PDF