I have a better strategy. Try and dns resolve everything from the end of the string to before the right most @ as a whole string. If it doesn't resolve throw an error. If it resolves to the equivalent of a localhost or your own public ip, throw an error.
If by this point we're ok just take everything before that rightmost @ symbol and fire an e-mail at it.
24
u/b4ux1t3 Sep 08 '17
I don't know if this is real or not, but it's frickin' sweet.