John@com
Is this kind of name spec-compliant?
John@com
Is this kind of name spec-compliant?
(Also notable, they have an A record on the hostname "ai." - you can see their website at http://ai./)
then browsers started to support it, but over time bugs pilled up and now it is treated as a different hostname (e.g. "www.example.org" is completely different to your browser than "www.example.org." even though they are the same to the dns spec)
then tls specs considers the dot in an earlier version, and they should be the same but because of the browser bugs it is all too much fun. my bank actually has a server that replies the same for domains with or without the root dot. but they only signed their certs for the no dot name, which again, is the same, but for browsers is kinda of not.
ah! living Standards.
The other use is in DNS zone files where everything that does not end in a '.' get the name of the zone appended.
The for mail (SMTP) the dot at the end is implicitly present, and adding one is not allowed.
HTML/HTTP basically doesn't define semantics with respect to the dot at the end. That's why "www.example.org" and "www.example.org." are different. They are different strings, and nobody defined them to be equivalent. At the same time, the name is just passed to the stub resolver in many cases. So search lists may be applied under the hood.
* http://jdebp.info./FGA/web-fully-qualified-domain-name.html
Another example of a rule that's optional for them is ICANN's Uniform Dispute Resolution Policy. Indeed, only some of them have adopted it, with others using a variation and still others not basing any of their dispute mechanisms on the UDRP.
My (sister) company has the .schwarz tld, and they use blabla@mail.schwarz. Such a waste, really.
https://github.com/systemd/systemd/issues/6224#issuecomment-...
Most websites will probably validate email addresses with regexes that expect a dot in the host part.
I honestly cannot register to a good 80% of the sites I want to.
They found it unbelievable that my email address could match their domain, and assumed I'd made a mistake.
If you're unsure whether you've already registered an account, I could understand the frustration of finding your "proper" dot configuration, but as a developer I'd figure that to be your problem.
With Gmail you can move the dot around, it's effectively stripped, to make sorta unique ones. But everyone serious about validating against Gmail knows to strip it out.
I'm in progress to migrating to an e-mail in my own domain, and I'm enjoying the extra control it gives me. I now use e-mails in the form of label@username.mydomain, which get internally translated to username+label@mydomain. Beyond solving problems with broken registration forms, it also makes it more difficult for spammers/data brokers to normalize the address - I assume most won't bother.
Validation emails also come with the added benefit of ensuring people enter their correct address (is not just randomly mashing the keyboard). Of course that doesn't stop them from using multiple addresses nor those burner address services, but neither would regex.
The problem is validation emails take more dev time to build so some people get lazy and use form validation such as regex instead.
If for example during a typical registration process the software merely sends an email instead of also trying to validate the address first the user either has to wait until the email has arrived before entering the remaining data or otherwise might end up with invalid registration data that cannot be retrieved anymore. In this case, the user would have to start over again.
This problem could be alleviated by having a two-step process, during which the software merely asks for the email address in the first step and the remaining data can only be filled in after the email address has been verified. However, depending on the requirements of the software it might make sense to not just ask for the email address but additional required information during the first step as well, in which case validating with regular expressions provides a better user experience through feedback.
... only to people who are not listening to the complaints from users whose perfectly valid mailboxes are rejected by such systems. It seems somewhat hypocritical for designers to go on about "good user experience" when the user experience in practice turns out to be that it is impossible to give the system their actual electronic mail addresses at all.
Then you could do the hard-fail checks very conservatively and still catch some mistakes early.
The idea here is to help the user avoid mistakes not to actually verify the email address. That's happening at a later stage, i.e. when the user clicks on a confirmation link.
your regex is too strict and doesn't accept all valid email addresses. my."really uncommon".email@is.valid is a valid email address that you would be rejecting.
the sane regex is /.+@.+/. Anything beyond checking for an @ is getting into very complicated territory (even the domain part allows stuff like round and square brackets)
Anyway, the point is to assist the user, not to verify the email address actually is valid.
My simple gmail address gets added to some new service by someone with a similar name at least once a week. And those services may or may not ask for confirmation, but then proceed to not care either way. It's super annoying. I get that people sometimes can't be bothered to confirm an account, but it still feels somehow very wrong.
Though you could argue that there are good reasons to disallow ip-based email addresses.
> host -t aaaa dk.
dk has IPv6 address 2a01:630:0:40::58
I don't know if they run SMTP (my ISP blocks it) but at least it answers http://dk/ :)https://tools.ietf.org/html/rfc7085 (Top-Level Domains That Are Already Dotless)
A bit like in x.400 you could have a mail address of say C=UK CN=brian" but only if you where the ADMD operator - btw my boss did have that email address when I worked on x.400