async-email / async-smtp

Apache License 2.0
59 stars 12 forks source link

Implement our own basic email validation #44

Closed link2xt closed 3 years ago

link2xt commented 3 years ago

fast_chemail crate is not maintained and is too restrictive: it does not accept domains without a dot.

Also validate email even if it ends in "localhost" to make sure email address does not contain control character that can be injected into SMTP protocol, like "RCPT TO:foo\r\nQUIT\r\n@localhost".

link2xt commented 3 years ago

This is needed to fix https://github.com/deltachat/deltachat-core-rust/issues/2540

cc @adbenitez