by omnibrain · 6y ago · 0 comments
There were various ways in which that failed.
1. ".name" was pretty new by then, so some frontends did not accept it
2. some frontends objected to the third level of my domain part, accepting third levels only in such cases as the well know. ".co.uk" for example
3. some frontends let me sign up, but something in the backend failed, I can only suspect if it was the ".name" tld or my third level, but I never got any mails after signing up
This is actually not such a rare edge case. My university, for example, uses <name>@students.<university>.de . So there's really not much excuse for not handling this.
var domain = addr.split(['@','.']).take_last(2)
var tld = domain[1]
// check TLD against wacky rules...
See, boss, it's easy. What's next?