3 ms·
The username part of an email address can actually be case sensitive, and this has been known to cause problems with some systems (e.g. https://airmail.tenderap
by chrismorgan 11y ago
The username part of an email address can actually be case sensitive, and this has been known to cause problems with some systems (e.g. https://airmail.tenderapp.com/help/discussions/287/113-case-sensitive-email-addresses-being-sent-out-as-all-lowercase https://airmail.tenderapp.com/help/discussions/287/113-case-...).
- protomyth 11y agoYes, and its a pain in the butt error to track down. I was helping a friend with an old postfix / cyrus server with some custom software and case sensitivity was the final cause of bad mail delivery. Gotta love the combo of a bad config and an old mainframe app sending in all uppercase.
- nitrogen 11y agoSo instead of converting to lowercase, store them with case preserved but do a case insensitive uniqueness check (and probably allow any case for login).
- protomyth 11y agoor just force all lowercase and keep the support burden lower and save yourself a ton of trouble when dealing with foreign systems. Add a rule on incoming e-mail to convert all addresses for the local domain to lowercase to complete the package.
- nitrogen 11y agoIt probably depends on whether we're talking about making your own users, like the original link, or allowing users to interface with other systems, like entering an email address.
- edgarbob 11y agoYes, this seems to be the right behavior for case-insensitive things like DNS names as well. If a user inputs one, preserve the case when you store it, but do case-insensitive comparisons.