When a user (or their email provider) marks a Relay email as spam, we receive a complaint notification. To prevent further spam from reaching the user (causing more complaints), we want to disable the email mask that forwarded the spam email, and notify the user.
Screenshot (if applicable)
How to test
This will be hard to test until it's on a server with fully operational AWS SES. When it is:
Sign up for Relay with an FXA that has a gmail, yahoo, or outlook primary email address
In the django admin site, activate the new disable_mask_on_complaint flag for the user
Create an email mask
Send an email to that mask
In the final destination mailbox, mark that email as spam
Note: It's unclear if all email providers send these complaint notifications, but gmail, yahoo, outlook, and other popular providers seem to do so.
Note 2: It's also unclear how long it takes for AWS to process complaint notifications and send them to Relay
At some point, Relay should receive the complaint notification
[ ] Verify the mask is disabled
[ ] Verify the user received an email notification that their mask was disabled
Checklist (Definition of Done)
[ ] Product Owner accepted the User Story (demo of functionality completed) or waived the privilege.
[ ] Customer Experience team has seen or waived a demo of functionality.
[x] All acceptance criteria are met.
[x] Jira ticket has been updated (if needed) to match changes made during the development process.
~[x] I've added or updated relevant docs in the docs/ directory~
[ ] Jira ticket has been updated (if needed) with suggestions for QA when this PR is deployed to stage.
[x] All UI revisions follow the coding standards, and use Protocol tokens where applicable (see /frontend/src/styles/tokens.scss).
Disable mask on complaint notification
See https://mozilla-hub.atlassian.net/browse/MPP-3119 for more context.
When a user (or their email provider) marks a Relay email as spam, we receive a complaint notification. To prevent further spam from reaching the user (causing more complaints), we want to disable the email mask that forwarded the spam email, and notify the user.
Screenshot (if applicable)
How to test
This will be hard to test until it's on a server with fully operational AWS SES. When it is:
disable_mask_on_complaint
flag for the userChecklist (Definition of Done)
/frontend/src/styles/tokens.scss
).