-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mail notifications for releases are send for user with deactivated e-mail #18950
Comments
It seems like that none of the sending mail functions is taking into account if a email address might be de-activated... Marking as bug. |
@Gusted Can you please give me a link to the relevant code section ? |
There too many code paths that eventually lead to sending a mail and many more functions, which uses those function and can access the user/database and can see if a email is inactive. If it was a general function it would be easier, but the code is quite cluttered. |
Emails should not be sent to inactive users except for Activate and ResetPassword messages. Fix go-gitea#18950 Signed-off-by: Andrew Thornton <[email protected]>
Emails should not be sent to inactive users except for Activate and ResetPassword messages. Fix #18950 Signed-off-by: Andrew Thornton <[email protected]>
Backport go-gitea#19131 Emails should not be sent to inactive users except for Activate and ResetPassword messages. Fix go-gitea#18950 Signed-off-by: Andrew Thornton <[email protected]>
Unfortunately fixing changes to `mail_issue.go` did not get included in go-gitea#19131. We also need to not send issue comment mails to deactivated users. Fix go-gitea#18950 Signed-off-by: Andrew Thornton <[email protected]>
Unfortunately fixing changes to `mail_issue.go` did not get included in go-gitea#19131. We also need to not send issue comment mails to deactivated users. Fix go-gitea#18950 Signed-off-by: Andrew Thornton <[email protected]>
Unfortunately fixing changes to `mail_issue.go` did not get included in #19131. We also need to not send issue comment mails to deactivated users. Fix #18950 Signed-off-by: Andrew Thornton <[email protected]>
Backport #19131 Backport #19142 Emails should not be sent to inactive users except for Activate and ResetPassword messages. Fix #18950 Signed-off-by: Andrew Thornton <[email protected]>
Emails should not be sent to inactive users except for Activate and ResetPassword messages. Fix go-gitea#18950 Signed-off-by: Andrew Thornton <[email protected]>
Unfortunately fixing changes to `mail_issue.go` did not get included in go-gitea#19131. We also need to not send issue comment mails to deactivated users. Fix go-gitea#18950 Signed-off-by: Andrew Thornton <[email protected]>
Gitea Version
1.16.1
Git Version
No response
Operating System
No response
How are you running Gitea?
Gitea helm chart
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
I have created a (bot) user with a fake e-mail adress but deactivated the e-mail address in the administration settings.
But when I create a release of a project a e-mail notification is send to this user.
Since the user doesn't have a valid mailbox a bounce message is generated
and sent to the mail system administrator.
How can I disable all e-mail notifications for a bot user ?
Screenshots
The text was updated successfully, but these errors were encountered: