top | item 23832286

(no title)

pi-err | 5 years ago

john...doe@gmail.com doesn’t seem to work though. I don’t think Gmail takes multiple dots.

discuss

order

chrismorgan|5 years ago

Not just Gmail, that’s a syntactically invalid email address. See https://en.wikipedia.org/wiki/Email_address#Local-part for details.

But sure, you could have `(my name is)john."..".doe+spam(...)@gmail.com` if you wanted to. Syntactically valid! The parenthesised bits would be stripped out before sending, and I have no idea whether Gmail would be willing to accept the quoted dots bit.

inanutshellus|5 years ago

Haha, I debated about throwing in the multi-dot address. Bummed that it was a bad example. :(

As for parens, I recollect the spec lets you nest your parens and quotes! It's insane. e.g. `f(oo."(bar."baz")."quux)@example.com` is valid in the spec.

I wrote an Oracle regex to parse for valid email addresses and I went against the spec rather than what is what's practically used. It was an insane thing.