mozilla / fxa-email-service

DEPRECATED - Migrated to https://github.com/mozilla/fxa
Mozilla Public License 2.0
6 stars 6 forks source link

feat(types): ignore display name part when parsing email addresses #229

Closed philbooth closed 6 years ago

philbooth commented 6 years ago

Fixes #201.

Email addresses that we receive from bounce, complaint and delivery notifications may not be identical matches to what we set on messages. We already did some normalization by lower-casing the address when parsing. This change extends that normalization process by trimming whitespace and unwrapping the address part if it has been wrapped in angle bracket delimiters to separate it from the display name. This matches the behaviour of the auth server.

@mozilla/fxa-devs r?