Hacker News new | ask | show | jobs
by sudb 38 days ago
Famously valid email address parsing is far from trivial[1] - I wouldn't be so quick to judge!

1. https://www.regular-expressions.info/email.html

1 comments

that's an excellent reason why one shouldn't validate emails by parsing, not an excuse for barring valid emails through poorly implemented validation
sure, but I was replying to a complaint about failure to parse, not existence of parsing

isn't the real pragmatic answer to parse out known invalid email address strings, and only attempt to deliver an email if unsure?

Sending emails that bounce is a really good way to increase the chance that your subsequent emails end up in spam.
not parsing is a form of parsing... you're just accepting everything.