-
Notifications
You must be signed in to change notification settings - Fork 187
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
Create and receive mozmail relay alias #993
Merged
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
1af261e
Cast boolean to ADMIN_ENABLED var
say-yawn 9a98ad0
Uniform method to get Relay email domain
say-yawn 94b06cf
Add domain field in Relay Address model
say-yawn 0ab81b7
Get the RelayAddress with appropriate domain
say-yawn c8a0310
Make RelayAddress with different domains
say-yawn 3a45102
Delete RelayAddress and hash the domain
say-yawn 2022c5b
Logger info
say-yawn e6cbcce
Use plus rather than append
say-yawn 53c061e
Use mozmail.com based on env var
say-yawn 2dc05d3
Pass domain in retries
say-yawn 7742448
Use index to grab first item
say-yawn e89525a
Domain not in profile
say-yawn 5480991
Get domain from relay address object
say-yawn 2e08f7a
Remove loggers
say-yawn 10d63fc
Pass domain portion for address hash
say-yawn 7d1f550
Fix views tests on emails app
say-yawn 55b43b2
Fix get email domain from settings
say-yawn b93e80f
Add get email domain test
say-yawn 6080e2d
Get domain from relay address when copying
say-yawn 42f78f7
Revert changes to deleted DomainAddress
say-yawn c7ac965
Test address hash with non-default domain
say-yawn 1c76a38
Test domain field on RelayAddress
say-yawn 9aa604f
Fix flake8 errors on emails
say-yawn 92dce9c
Make static migration
say-yawn d525c8f
Move domains to utils
say-yawn 75ba71f
Add domains environment variables to sample
say-yawn 4b9ef53
Fix emails/views with new domains logic
say-yawn 3c6c411
Remove unneeded code snippet
say-yawn 36588a9
Test get_domains_from_settings
say-yawn 000da4f
Return domain value on profile
say-yawn 74dad3f
Fix broken tests
say-yawn ee9a67c
Use Firefox address on address_hash logic
say-yawn 8cd6652
Enable mozmail for Mozillians
say-yawn b74c38b
Pass domain in the parameter
say-yawn bfc8c84
Display correct domain for alias
say-yawn 279cd39
Use mozmail domain when TEST_MOZMAIL is True
say-yawn 7d05ba2
Return domain of RelayAddress
say-yawn 8673e35
Return full_address for RelayAddress
say-yawn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to add the
domain
property to the response that's good, but this doesn't fix the issue, because theaddress_string
is still'%s@%s
where the 2nd string substitution is based on therelay_from_domain
. So the add-on will need to:address
value by splitting it at the@
characterdomain
valueAND we will need to coordinate the release of the add-on with the additional parsing code with the release of the server code.
A better fix that de-couples the code-bases, but still extends the response in a way the add-on can use later: