40 ms·
These might be valid but nobody uses them and nobody will complain if you do not support them.
by AnaniasAnanas 8y ago
These might be valid but nobody uses them and nobody will complain if you do not support them.
- deleted 8y ago[deleted]
- duskwuff 8y agoNot sure why this is getting downvoted. It's a valid point. There is a gap between "technically valid email addresses" and "email addresses that reasonable people use".
- deleted 8y ago[deleted]
- scbrg 8y agoNot that I downvoted, but the attitude annoys me. As a developer you have two options: 1) Do nothing and support all valid addresses (that your mail system can handle) 2) Spend development time to make your system not support all valid addresses. Why do you spend development effort to make your software worse?
- jcranmer 8y ago3) Realize that undervalidation of input can create opportunities to introduce backdoors into your system. 4) Realize that the added benefit of supporting weird formats are not worth the time to verify that it actually works. As someone who works on an email client, I can absolutely tell you that using IP address literals and quoted localparts are more trouble than its worth. Chances are, the libraries you use can't handle them anyways. And if you don't try to support quoted localparts, than normalization is a lot easier. (Although I was once locked out of a system because I signed up with an email address that used capitals and the login form changed to lowercase it without changing the database storage, which meant no form I could spell it would cause it to match).
- wongarsu 8y agoThe extreme cases are very rare, but even resonable addresses are rejected regularly. I have had various email addresses of me rejected because - of an unusual tld (whatever@somewhere.tech) - it was an email of a subdomain (whatever@some.where.com) - it had a two letter username (me@somewhere.com)
- Tepix 8y agoWhy is this downvoted? Because it violates Postel's law, one of the cornerstones of the technology running the internet: "Be conservative in what you do, be liberal in what you accept from others"
- AnaniasAnanas 8y ago> be liberal in what you accept from others This is a recipe for disaster and code bloat. I met in the past a vulnerability that some irc clients had due to that principle.
- Tepix 8y agoIt depends. There are plenty of harmless examples like removing leading/trailing whitespace when entering a name. Ignoring whitespace, dashes etc. when entering a code, etc. A bit of extra effort by the developers saves a lot of people a lot of time.
- darpa_escapee 8y agoIt's very rare that you get to confront the bane of your online existence, but here we both are.
- Tor3 8y agoBut, you know, I have seen one or two such email addresses. So somebody do use them.
- EADGBE 8y agodoes
- deleted 8y ago[deleted]