-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why email like "toto@k.__c" is valid? #161
Comments
Hi @ebuildy Would you consider this a bug or a feature :) ? |
Ho I see. Any way, I used a regexp validator in top of your to handle this situation. As a suggestion, I would recommend to have a mode that act like the HTML 5 validator, so front and back have the same behavior. |
Hi, |
I would say the real question is: What about a RealWorldValidation class? With saner domain checks? |
For the record, another couple of real cases found while sending passed the check (called from Swift Mailer) then making postfix complaining:
|
Hi, |
Hi @egulias, Tested with both SwiftMailer, which uses the RFCvalidator internally throwing RFC exceptions and with the snippet and they didn't change so far, unless you have implemented it in another different validator (DNS based?) implementation I could test if needed. It seems fine to me making it "default" in the validator somehow for v3 due to the behavior change. By the way, I'm catching invalid recipients returned by postfix, so this issue does not affect to me, it's just slightly slower as I need to reconnect the postfix transport in SwiftMailer when this happens. |
Hi @fdelapena , thanks for sharing. There's an additional validation possible with #183 . |
A small script:
Gives
HTML5 validator is saying also that
toto@lsdkjfkldsjf.__com
is wrong.The text was updated successfully, but these errors were encountered: