News for hackers. Stuff that matters.
Re:The Correct Way to Validate Email Addresses by tedmiston on Thursday September 08, 2016 @02:23PM (#12455710)
With respect to (1), the cases I had in mind as "obviously invalid" is something that doesn't contain all of the required components of an email address. For example, if the user submits their email as "foo" or "foo@bar" or "foo@bar." I should have provided examples as the way I wrote it was definitely ambiguous.
Re:The Correct Way to Validate Email Addresses by nulbyte on Thursday September 08, 2016 @08:23PM (#12458738)
Both "foo@bar" and "foot@bar." are valid email addresses. "bar" can be a host name or a top-level domain name. "bar." is a top-level domain name.

That said, "foot@bar." may be valid, but ICANN says it should not be functional. They prohibit dotless domain names (that is, top-level domain names may not have A, AAA, or MX records).

Re:The Correct Way to Validate Email Addresses by zAy0LfpBZLC8mAC on Thursday September 08, 2016 @03:01PM (#12456180)
How about foo@[1.2.3.4] ?

"foo", ok, I agree with the blogpost, if there isn't even an @ in there somewhere, maybe it's sensible to catch that and reject it outright. But that's probably about it.