Skip to content
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

A variant of EmailStr that doesn't pass check_deliverability=False #9416

Closed
3 of 13 tasks
tamird opened this issue May 8, 2024 · 4 comments
Closed
3 of 13 tasks

A variant of EmailStr that doesn't pass check_deliverability=False #9416

tamird opened this issue May 8, 2024 · 4 comments

Comments

@tamird
Copy link

tamird commented May 8, 2024

Initial Checks

  • I have searched Google & GitHub for similar requests and couldn't find anything
  • I have read and followed the docs and still think this feature is missing

Description

See

parts = email_validator.validate_email(email, check_deliverability=False)
. I would like to validate email addresses including rejection of unknown domains.

While we're at it, it would be nice to normalize as well.

Affected Components

@samuelcolvin
Copy link
Member

Generally we try to discourage doing networking within validation, mostly because there's no way to do async in a validator.

@tamird
Copy link
Author

tamird commented May 9, 2024

That's a good point.

How about normalization?

@sydney-runkle
Copy link
Member

@tamird,

Seems reasonable re normalization, but I think it makes sense to move this feature request to email-validator. Closing as not planned here for now!

@sydney-runkle sydney-runkle closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
@tamird
Copy link
Author

tamird commented May 16, 2024

email-validator already does normalization. it is not possible to use it though with EmailStr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants