Defect #31745
closedMail notifications do not honor 'only_assigned' mail_notification setting
0%
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
Updated by Robert Chady about 5 years ago
Any chance at getting a little guidance on the best way to fix this?
Updated by Go MAEDA about 5 years ago
- Related to Patch #24177: Change translation for label_user_mail_option_only_(assigned|owner) added
Updated by Go MAEDA about 5 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.