Authenticated users without an email address do not get notifications
|Reported by:||Owned by:||Jun Omae|
Fix a regression of #12658, ticket notification not sending for authenticated users without email.
This is a regression introduced in #12658
mail.py in the
match_recipient() function in
before #12658, a user with no email address would not appear in
smtp_default_domain options would be applied.
Now, any authenticated user in the database will appear in
self.users so we always run the
if address in self.users: branch for authenticated users and never the
elif ... branch so the
smtp_default_domain options are never applied to these users.