News for hackers. Stuff that matters.
Re:Falsehoods programmers believe about email by imglorp on Thursday September 01, 2022 @09:00AM (#32675665)
I wonder if that's because they know people use + to tag for later spam blocking, or is it just a lazy regex user who needs to read this article?
Re:Falsehoods programmers believe about email by jonathanlydall on Thursday September 01, 2022 @04:45PM (#32682912)
Our website blocked it inadvertently, we were using ASP.NET Identity which has internal email validation which by default does not accept it. Just flipping a flag in the configuration is enough to allow it, but until someone reported the problem I wasn’t even aware it was blocked.
Re:Falsehoods programmers believe about email by skeeter2020 on Thursday September 01, 2022 @09:34AM (#32676010)
IME it's the latter, but not because they are lazy, but because email validation is hard. The lazy regex was in the late 90's early 00's when any email that didn't end in .com, .edu or .net failed!
Re:Falsehoods programmers believe about email by hoosieree on Thursday September 01, 2022 @01:38PM (#32680037)
The problem is insufficient laziness. Just check that the email contains an `@` sign, and validate later by corresponding with the address.

    if "@" in email:
      send_confirmation(email)
Re:Falsehoods programmers believe about email by shakna on Thursday September 01, 2022 @03:45PM (#32682007)
Which is truly terrible. I mean, here's a valid email that was used in the early 90s:

    sdchema!mhtsa!australia!chris@Nosc