Added email validation for users before they are added to an email recipient list

Review Request #11958 — Created Jan. 21, 2022 and updated

TaylorChristie
Review Board
release-4.0.x
4937
reviewboard

Added email validation so only valid emails are being sent to and any blank or invalid emails are not included.

  • Created a user with an email and verified there were no errors when creating/updating a review request
  • Removed the users email and verified that the recipient had an invalid email and has issues sending the email
  • added in validation and ensure that a warning log is printed when a user has an invalid email
  • Added back the email and ensured that the user was included on the email
Summary
[4937] added email validation for users before they are added to an email recipient list
[4937] added back missing whitespace
[4937] removed needless assignment of exception
Description From Last Updated

Instead of listing the bug number in the summary and linking it in the description, just add the bug number …

daviddavid

For the summary, let's make sure it starts with a capital letter.

daviddavid

In the description, please explain what the bug was and how your change fixes it.

daviddavid

F841 local variable 'e' is assigned to but never used

reviewbotreviewbot

We should probably keep this as-is and do validation for everything in the addresses set. get_email_addresses_for_group can give us potentially …

daviddavid
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

TaylorChristie
TaylorChristie
david
  1. 
      
  2. Instead of listing the bug number in the summary and linking it in the description, just add the bug number to the "Bugs" field.

  3. For the summary, let's make sure it starts with a capital letter.

  4. In the description, please explain what the bug was and how your change fixes it.

  5. reviewboard/notifications/email/utils.py (Diff revision 2)
     
     
     
     
     
     
     
     
     

    We should probably keep this as-is and do validation for everything in the addresses set. get_email_addresses_for_group can give us potentially invalid addresses as well.

  6. 
      
TaylorChristie
Review request changed

Summary:

-[4937] added email validation for users before they are added to an email recipient list
+Added email validation for users before they are added to an email recipient list

Description:

   

Added email validation so only valid emails are being sent to and any blank or invalid emails are not included.

-  
-  

Fixes: https://hellosplat.com/s/beanbag/tickets/4937/

Bugs:

+4937
Loading...