Commit Graph

43 Commits

Author SHA1 Message Date
László Károlyi e8646ffe6c
Prepare a new release with new options 2022-06-28 19:13:04 +02:00
László Károlyi 91fb131abf
Fixes #85, optional skipping of the autoupdate 2021-12-06 17:59:55 +01:00
László Károlyi 85ecd1a600
Fix isort 2021-09-15 18:35:51 +02:00
László Károlyi 2067a54984
Closes #79, handle recovery from an `SSLError`, make use of `SSLContext` 2021-09-15 18:12:19 +02:00
Reinhard Müller 7729037830 Add extensive unit tests for smtp_check module 2021-03-12 14:38:44 +01:00
Reinhard Müller da540d8db2 Clean up parameter list, update docs
See also discussion at
https://github.com/karolyi/py3-validate-email/discussions/57
2021-03-12 01:06:13 +01:00
Reinhard Müller 1b9b0682cd Improve emulation of true SMTP process
* Check the SMTP servers in order of priority instead of random order.
* Handle SMTPServerDisconnected like a 451 status as recommended by RFC
  5321.
* Exit early by directly raising CommunicationError on the first 5xx
  SMTPResponseException.

See also the discussion at
https://github.com/karolyi/py3-validate-email/discussions/61
2021-03-11 16:09:09 +01:00
Reinhard Müller e1684f7f72 Make isort happy 2021-03-03 21:53:25 +01:00
Reinhard Müller bcbadbab65 Split mx_check into dns_check and smtp_check
This will allow us to cleanly and consistently keep the four
verification steps separate: format (regex) - blacklist - dns - smtp.
2021-03-02 18:30:13 +01:00
László Károlyi c6c3c18ebe
Fix unused import so travis won't chimp out 2021-03-01 19:11:17 +01:00
László Károlyi 1d0207f762
Fix names 2021-03-01 18:15:02 +01:00
László Károlyi 09e5e56d48
Adding initial SMTPCheckerTest tests 2021-03-01 18:09:43 +01:00
László Károlyi 5e84348d9b
Fix tests 2021-03-01 17:43:52 +01:00
László Károlyi 8439d94742
Fix tests, prepare a new release 2021-02-11 17:49:29 +01:00
László Károlyi 81f5769ac8
Merge pull request #49 from gearheartio/feature/add-no_smtp_argument
Add no_smtp argument that allows us to validate only mx records witho…
2021-02-11 16:54:08 +01:00
László Károlyi a691f359bb
Simplify code on DNS name resolving 2021-02-11 15:10:31 +01:00
Sergey Shevchenko fea879a809
Add no_smtp argument that allows us to validate only mx records without SMTP request 2021-02-11 17:41:21 +04:00
László Károlyi 072a12f632
Update spam address 2021-01-06 20:41:20 +01:00
László Károlyi 43a3a08499
Fix tests 2020-11-19 15:20:39 +01:00
László Károlyi 96a6939b6c
Add test for testing datadir not in sdist 2020-04-13 21:58:24 +02:00
Reinhard Müller d7666bd6ad Introduce EmailAddress class
This unifies the tasks of splitting an email address into user and
domain parts as well as converting an international domain name into the
ASCII-compatible encoding (ACE).
2020-04-13 09:44:50 +02:00
László Károlyi e3d2bf24c7
Add a test for preinstalled data directory checking 2020-04-12 20:19:57 +02:00
László Károlyi a17fd45826
Level-up autoupdater, closes #7 and closes #6 2020-04-11 14:24:19 +02:00
László Károlyi 9b174a591f
Beautifying code, updating AUTHORS+CHANGELOG 2020-04-10 13:26:06 +02:00
Reinhard Müller 55112f2c05 Fix IDNAError handling 2020-04-09 00:35:51 +02:00
Reinhard Müller 73814d7f6d Introduce distinct exception classes and logging 2020-04-08 23:56:49 +02:00
László Károlyi 4d2f711c9a
Add auto-updater 2019-11-24 18:13:02 +01:00
László Károlyi cee806d662
Fix travis 2019-11-24 12:01:58 +01:00
László Károlyi 908fd4d74e
Modify requirements (+travis), refactor mutual code 2019-11-24 11:59:28 +01:00
László Károlyi 312c028a1e
Load builtin blacklist at test time 2019-11-21 15:43:54 +01:00
László Károlyi 42dd94ee18
Separate blacklist check 2019-11-21 15:41:05 +01:00
László Károlyi e3605caf32
Fixing pep8 errors 2019-06-26 14:33:25 +02:00
László Károlyi 0b0e77d662
Adding IDNA failure handling 2019-06-26 14:31:52 +02:00
László Károlyi b528f25261
Bumping version + adding to changelog 2019-05-25 13:54:20 +02:00
László Károlyi 9268215542
Handling DNS timeouts 2019-05-25 13:51:02 +02:00
László Károlyi 0b6117a03b
Adding IDNA domains handling 2019-05-03 18:44:44 +02:00
László Károlyi b685e003fa
Fixed tests, code is right nonentheless 2019-04-03 22:03:40 +02:00
László Károlyi 79a647b523
Fixing flake8 errors 2019-04-03 21:49:22 +02:00
László Károlyi acad51a5bb
Fixing a rare error where aol.co returns '.' as MX 2019-04-03 21:47:37 +02:00
László Károlyi ddb08d55fd
Renaming package, adding isort 2019-03-01 23:29:01 +01:00
László Károlyi 82a9aadbad
Using unittests, replacing regex checker 2019-03-01 23:01:21 +01:00
László Károlyi bb352cdc98
More formatting 2019-03-01 21:49:39 +01:00
László Károlyi db8a24b5d4
Refactorings 2019-03-01 20:37:52 +01:00