From 3b03617b81a1f9f6bc1bc6edc8c5d6d9f87eabbb Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Mon, 6 Jul 2020 20:17:49 +0200 Subject: [PATCH] fix: Add "Invalid email address" check (#471) * fix: Add "Invalid email address" check * Bump 0.8.11 --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- Dockerfile | 2 +- README.md | 2 +- core/Cargo.toml | 2 +- core/src/smtp/mod.rs | 2 ++ test_suite/Cargo.toml | 2 +- 7 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fd8e67a27..105dbeae1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -373,7 +373,7 @@ checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" [[package]] name = "check-if-email-exists" -version = "0.8.10" +version = "0.8.11" dependencies = [ "async-smtp", "async-std-resolver", @@ -392,7 +392,7 @@ dependencies = [ [[package]] name = "check-if-email-exists-cli" -version = "0.8.10" +version = "0.8.11" dependencies = [ "check-if-email-exists", "clap", @@ -405,7 +405,7 @@ dependencies = [ [[package]] name = "check-if-email-exists-test-suite" -version = "0.8.10" +version = "0.8.11" dependencies = [ "check-if-email-exists", "serde", diff --git a/Cargo.toml b/Cargo.toml index 52a261c98..4a1f62a6b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "check-if-email-exists-cli" -version = "0.8.10" +version = "0.8.11" default-run = "check_if_email_exists" edition = "2018" license = "AGPL-3.0" diff --git a/Dockerfile b/Dockerfile index 3696eb480..13216fb33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM alpine # `ciee` stands for check-if-email-exists WORKDIR /ciee # Fetch latest version -ENV CIEE_VERSION 0.8.10 +ENV CIEE_VERSION 0.8.11 # Install needed libraries RUN apk update && \ diff --git a/README.md b/README.md index a82514c3f..0186d919d 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ Head to the [releases page](https://github.com/amaurymartiny/check-if-email-exis ``` > $ check_if_email_exists --help -check_if_email_exists 0.8.10 +check_if_email_exists 0.8.11 Check if an email address exists without sending any email. USAGE: diff --git a/core/Cargo.toml b/core/Cargo.toml index cddc513d0..21ade782e 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "check-if-email-exists" -version = "0.8.10" +version = "0.8.11" authors = ["Amaury Martiny "] categories = ["email"] description = "Check if an email address exists without sending any email" diff --git a/core/src/smtp/mod.rs b/core/src/smtp/mod.rs index bfabde42b..962c38c4d 100644 --- a/core/src/smtp/mod.rs +++ b/core/src/smtp/mod.rs @@ -260,6 +260,8 @@ async fn email_deliverable( // 550 invalid address // 550 User not local or invalid address – Relay denied || err_string.contains("invalid address") + // 5.1.1 Invalid email address + || err_string.contains("invalid email address") // 550 Invalid recipient || err_string.contains("invalid recipient") || err_string.contains("may not exist") diff --git a/test_suite/Cargo.toml b/test_suite/Cargo.toml index e6d70812d..1fe2e9b88 100644 --- a/test_suite/Cargo.toml +++ b/test_suite/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "check-if-email-exists-test-suite" -version = "0.8.10" +version = "0.8.11" edition = "2018" publish = false