Live data from Hacker News

Stop Validating Email Addresses with Regex (2012)

davidcel.is

61–70 of 228 posts

Re: Stop Validating Email Addresses with Regex (2012)

#61
post #51

Earlier quoted context omitted.

Please don't check for a full-stop/period. It excludes those who have their email address directly on a TLD.

No it doesn't. Those require a dot at the end. Without a dot, it's a hostname not a TLD.

https://mail.gnome.org/archives/evolution-list/2002-January/...

Re: Stop Validating Email Addresses with Regex (2012)

#62
post #54

Earlier quoted context omitted.

Is that an existing cohort? I'm not saying it isn't, I've just not run across them.

Probably not. http://ai./ has a website, but no emails AFAIK

https://mail.gnome.org/archives/evolution-list/2002-January/...

Re: Stop Validating Email Addresses with Regex (2012)

#63
post #51

Earlier quoted context omitted.

No it doesn't. Those require a dot at the end. Without a dot, it's a hostname not a TLD.

https://mail.gnome.org/archives/evolution-list/2002-January/...

Without a dot it won't always use the TLD.

  easrng@easrng-laptop:~$ echo -e "127.0.0.1\tai" | sudo tee -a /etc/hosts
  127.0.0.1       ai
  easrng@easrng-laptop:~$ ping ai
  PING ai (127.0.0.1) 56(84) bytes of data.
  ^C
  easrng@easrng-laptop:~$ ping ai.
  PING ai (209.59.119.34) 56(84) bytes of data.
  ^C

Re: Stop Validating Email Addresses with Regex (2012)

#64

Does anyone on HN have any of these "surprising" email addresses that most people and developers do not expect? How does it work with common e-mail clients? How do people react when you show/tell them your email? I have a domain that uses non-ascii characters, and while I can receive emails on that domain, hosted by Fastmail, Fastmail clients refuses to _send_ emails to that domain (I can, if I type the domain as Pun…

I can't type one of my email address on HN as it has emojis in the hostname. It works great with Fastmail. It gets problematic when I use emojis in the mailbox name as well. At lot of hosts won't allow that.

You can see the email address on the front page if I paste the punycode web address on here:

https://xn--bp8hgh.to/

Re: Stop Validating Email Addresses with Regex (2012)

#66
post #63

Earlier quoted context omitted.

https://mail.gnome.org/archives/evolution-list/2002-January/...

Without a dot it won't always use the TLD. easrng@easrng-laptop:~$ echo -e "127.0.0.1\tai" | sudo tee -a /etc/hosts 127.0.0.1 ai easrng@easrng-laptop:~$ ping ai PING ai (127.0.0.1) 56(84) bytes of data. ^C easrng@easrng-laptop:~$ ping ai. PING ai (209.59.119.34) 56(84) bytes of data. ^C

You're right. I did some experiments too after your first reply. It's definitely inconsistent depending on what software you are using (as some software now bypasses your system resolver and uses HTTP DNS etc). I've known people who had email addresses on TLDs and they never had any problem receiving email (without using a final dot), so I'm not sure how the MX record is being resolved or how the SMTP connection is being made. It's very possible that the mail daemon is automatically adding a dot to the end of every hostname.

Re: Stop Validating Email Addresses with Regex (2012)

#67
post #54

Earlier quoted context omitted.

Probably not. http://ai./ has a website, but no emails AFAIK

https://mail.gnome.org/archives/evolution-list/2002-January/...

Huh, looks like n@ai. still exists, I wonder if it's in use anymore.

Re: Stop Validating Email Addresses with Regex (2012)

#68

Earlier quoted context omitted.

The most underrated crypto thing that people don't discuss enough, is that i don't need an email account to interact with web3 apps, i just sign in with metamask. if I could do it for every single app around that would be great.

What's wrong with a username and password?

Easy to forget login, easy to forget passwd, easy to forget what passwd is attached to some login. Not to mention that nowadays most services ask some second and third factors like email which has 2 passwds, phone which may be lost, docs which may be unwanted to demonstrate. Modern cryptography may solve it if webmasters really want it (but for some reason they prefer to collect as much as possible).

Re: Stop Validating Email Addresses with Regex (2012)

#69

Does anyone on HN have any of these "surprising" email addresses that most people and developers do not expect? How does it work with common e-mail clients? How do people react when you show/tell them your email? I have a domain that uses non-ascii characters, and while I can receive emails on that domain, hosted by Fastmail, Fastmail clients refuses to _send_ emails to that domain (I can, if I type the domain as Pun…

I do and like many other HN users, when websites refuse to accept my email, I simply don't use their service. I haven't noticed any decrease in my quality of life - in fact, being able to use my email freely is invigorating and gives me a sense of worth in this corporate controlled internet.

Re: Stop Validating Email Addresses with Regex (2012)

#70

Can't upvote this enough. There simply is no need to check the email addr provided by the user. Send the mail, if it bounces, the user has only himself to blame. What if I don't want them to go through the hassle of an activation link? Then I don't bother with an email account in the sign-up process in the first place. If they want a passwd reset method, they can later provide an email in their settings page, if that…

The most underrated crypto thing that people don't discuss enough, is that i don't need an email account to interact with web3 apps, i just sign in with metamask. if I could do it for every single app around that would be great.

[deleted]
Post reply on HN