We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d4fa72 commit 8f4cf00Copy full SHA for 8f4cf00
email_validator/__init__.py
@@ -634,10 +634,12 @@ def __utf8_output_shim(output_str):
634
return output_str
635
636
if len(sys.argv) == 1:
637
+ # Validate the email addresses pased line-by-line on STDIN.
638
+ dns_resolver = caching_resolver()
639
for line in sys.stdin:
640
email = __utf8_input_shim(line.strip())
641
try:
- validate_email(email)
642
+ validate_email(email, dns_resolver=dns_resolver)
643
except EmailNotValidError as e:
644
print(__utf8_output_shim("{} {}".format(email, e)))
645
else:
0 commit comments