Next step towards 1.0.0 #63

Merged
reinhard-mueller merged 6 commits from master into version-1.0.0 2021-03-14 13:54:32 +01:00
reinhard-mueller commented 2021-03-12 01:13:23 +01:00 (Migrated from github.com)

Comments welcome!

Comments welcome!
reinhard-mueller commented 2021-03-12 08:58:24 +01:00 (Migrated from github.com)

BTW, I will add more unittests for smtp_check to this PR soon, but you're still welcome to comment on what's already here.

BTW, I will add more unittests for `smtp_check` to this PR soon, but you're still welcome to comment on what's already here.
karolyi (Migrated from github.com) reviewed 2021-03-13 13:47:20 +01:00
@ -14,3 +21,4 @@
we talk to seemingly accepts the email address.
## Everything gets rejected:
karolyi (Migrated from github.com) commented 2021-03-13 13:47:20 +01:00

Is this really the case with MS servers? So far I've seen outlook servers (if you meant those) rejecting the invalid emails properly.

Is this really the case with MS servers? So far I've seen outlook servers (if you meant those) rejecting the invalid emails properly.
karolyi (Migrated from github.com) reviewed 2021-03-13 14:01:53 +01:00
karolyi (Migrated from github.com) commented 2021-03-13 14:01:53 +01:00

"dynamic range" is called an IP pool

"dynamic range" is called an IP pool
karolyi (Migrated from github.com) reviewed 2021-03-13 14:03:00 +01:00
karolyi (Migrated from github.com) commented 2021-03-13 14:03:00 +01:00

... servers for many email domains (depending on their configuration) will reject connections ...

... servers for many email domains (depending on their configuration) will reject connections ...
karolyi (Migrated from github.com) reviewed 2021-03-13 14:12:29 +01:00
karolyi (Migrated from github.com) commented 2021-03-13 14:12:29 +01:00

if not check_dns and not check_smtp: is preferred, as it's more pythonic :)

`if not check_dns and not check_smtp:` is preferred, as it's more pythonic :)
karolyi (Migrated from github.com) reviewed 2021-03-13 15:05:09 +01:00
karolyi (Migrated from github.com) commented 2021-03-13 15:05:08 +01:00

This can look like

def smtp_check(
    email_address: EmailAddress, mx_records: List[str],
    timeout: float = 10, helo_host: Optional[str] = None,
    from_address: Optional[EmailAddress] = None, debug: bool = False
) -> bool:

(autopep8 make these changes)

This can look like ```python def smtp_check( email_address: EmailAddress, mx_records: List[str], timeout: float = 10, helo_host: Optional[str] = None, from_address: Optional[EmailAddress] = None, debug: bool = False ) -> bool: ``` (autopep8 make these changes)
karolyi (Migrated from github.com) reviewed 2021-03-13 15:22:18 +01:00
karolyi (Migrated from github.com) left a comment

There was a couple comments I made, but aside from those, I'm very satisfied with what you did here.

You did a nice documentation job there, clever job done with the tests. Let's iron out the changes I mentioned here and the dependency questions, and then I think we're ready for the major release.

There was a couple comments I made, but aside from those, I'm very satisfied with what you did here. You did a nice documentation job there, clever job done with the tests. Let's iron out the changes I mentioned here and the dependency questions, and then I think we're ready for the major release.
reinhard-mueller (Migrated from github.com) reviewed 2021-03-14 13:17:43 +01:00
@ -14,3 +21,4 @@
we talk to seemingly accepts the email address.
## Everything gets rejected:
reinhard-mueller (Migrated from github.com) commented 2021-03-14 13:17:43 +01:00

I have tested various domains where the MX is .mail.protection.outlook.com; some of them reject invalid emails properly and some don't. If you want I can send you some examples in private email, you can find my email address [here[(https://wiki.fsfe.org/Supporters/reinhard).

I have tested various domains where the MX is <domainname>.mail.protection.outlook.com; some of them reject invalid emails properly and some don't. If you want I can send you some examples in private email, you can find my email address [here[(https://wiki.fsfe.org/Supporters/reinhard).
karolyi commented 2021-03-14 13:55:31 +01:00 (Migrated from github.com)

This was a great contribution, thank you!

I'll change the idna dependency and make a 1.0.0 release soon.

This was a great contribution, thank you! I'll change the idna dependency and make a 1.0.0 release soon.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: karolyi/py3-validate-email#63
No description provided.