4 ms·
When it comes to email address normalization, it sounds like we could do with a standardized way for a domain to express normalization policies. Could be as si
by mhandley 9y ago
When it comes to email address normalization, it sounds like we could do with a standardized way for a domain to express normalization policies.
Could be as simple as publishing a set of regular expression subsitution rules, specifying (for example):
* render to lower case (because this particular domain is case insensitive)
* drop periods (because this domain treats them like gmail does)
* drop '+' and any subsequent characters (because this domain treats them like gmail does)
* ASCII only (because mail software is old, and doesn't support unicode)
Etc.
Each domain could then publish their own rule, perhaps in a DNS txt record, and anyone needing to check if two email addresses alias to the same could run the correct checks.
- ino 9y agoSome users capitalize their email address, and they expect to see it capitalized. I think a better solution would be to use a case insensitive collation on the database for the email column. If the user changes the capitalization of their email, treat it like any other email change (validate the new email via email token)