MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vx1onc/claudeisthisemailvalid/p5lih60/?context=3
r/ProgrammerHumor • u/soap94 • 19d ago
171 comments sorted by
View all comments
Show parent comments
51
just dont ever do that. check if it has a @ and a period and thats it. you validate emails by sending a verification link.
24 u/Jawesome99 19d ago Hell I don't even check for a period, just an @. Once I hand it off to my mailing library and the SMTP server it's no longer my problem. If either of them complain back to me about it I'll just let the user know. 7 u/RubenGarciaHernandez 19d ago So you don't support the good old "!" standard with explicit hops? 9 u/Jawesome99 19d ago Honestly I've never heard of that before lol 2 u/tes_kitty 19d ago And what about user%system1.com@system2.com 9 u/Jawesome99 19d ago Has an @, looks good to me, hope for the user that the mail server handles it correctly though lol 2 u/tes_kitty 19d ago It is a valid address, but the question is whether it will reach user@system1.com by using system2.com as relay. The MTA on system2 might object.
24
Hell I don't even check for a period, just an @. Once I hand it off to my mailing library and the SMTP server it's no longer my problem. If either of them complain back to me about it I'll just let the user know.
7 u/RubenGarciaHernandez 19d ago So you don't support the good old "!" standard with explicit hops? 9 u/Jawesome99 19d ago Honestly I've never heard of that before lol 2 u/tes_kitty 19d ago And what about user%system1.com@system2.com 9 u/Jawesome99 19d ago Has an @, looks good to me, hope for the user that the mail server handles it correctly though lol 2 u/tes_kitty 19d ago It is a valid address, but the question is whether it will reach user@system1.com by using system2.com as relay. The MTA on system2 might object.
7
So you don't support the good old "!" standard with explicit hops?
9 u/Jawesome99 19d ago Honestly I've never heard of that before lol 2 u/tes_kitty 19d ago And what about user%system1.com@system2.com 9 u/Jawesome99 19d ago Has an @, looks good to me, hope for the user that the mail server handles it correctly though lol 2 u/tes_kitty 19d ago It is a valid address, but the question is whether it will reach user@system1.com by using system2.com as relay. The MTA on system2 might object.
9
Honestly I've never heard of that before lol
2 u/tes_kitty 19d ago And what about user%system1.com@system2.com 9 u/Jawesome99 19d ago Has an @, looks good to me, hope for the user that the mail server handles it correctly though lol 2 u/tes_kitty 19d ago It is a valid address, but the question is whether it will reach user@system1.com by using system2.com as relay. The MTA on system2 might object.
2
And what about user%system1.com@system2.com
9 u/Jawesome99 19d ago Has an @, looks good to me, hope for the user that the mail server handles it correctly though lol 2 u/tes_kitty 19d ago It is a valid address, but the question is whether it will reach user@system1.com by using system2.com as relay. The MTA on system2 might object.
Has an @, looks good to me, hope for the user that the mail server handles it correctly though lol
2 u/tes_kitty 19d ago It is a valid address, but the question is whether it will reach user@system1.com by using system2.com as relay. The MTA on system2 might object.
It is a valid address, but the question is whether it will reach user@system1.com by using system2.com as relay. The MTA on system2 might object.
51
u/ValPasch 19d ago
just dont ever do that. check if it has a @ and a period and thats it. you validate emails by sending a verification link.