Skip to content

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.

fix: Add "Invalid email address" check (#471)

Amaury Martiny3b03617b81a1
diff --git a/Cargo.lock b/Cargo.lock
index fd8e67a2..105dbeae 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 52a261c9..4a1f62a6 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 3696eb48..13216fb3 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 a82514c3..0186d919 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 cddc513d..21ade782 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 <[email protected]>"]
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 bfabde42..962c38c4 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 e6d70812..1fe2e9b8 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