Commit Graph

8 Commits

Author SHA1 Message Date
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
László Károlyi 1999e1d433
Simplifying code 2021-03-01 17:15:58 +01:00
László Károlyi 5a27711397
Overhauling response handling 2021-03-01 11:37:48 +01:00
László Károlyi 903925afc9
Code cleanup, tests follow 2021-02-28 15:02:16 +01:00
Reinhard Müller 9d662a2f23 Improve SMTP check error handling
* Improve exception class hierarchy
* Raise exception on malformatted "from_address" parameter instead of
  yielding a negative verification result
* Add option to raise exceptions on ambiguous results
* Improve exception parameters to allow for a more structured analysis
  of the negative response
* Yield a negative verification result upon the first permanent error on
  RCPT TO, just like a mail server would also bounce after the first
  permanent error
2021-02-22 14:32:56 +01: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 9b174a591f
Beautifying code, updating AUTHORS+CHANGELOG 2020-04-10 13:26:06 +02:00
Reinhard Müller 73814d7f6d Introduce distinct exception classes and logging 2020-04-08 23:56:49 +02:00