Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.
Rust emailemail-validationemail-validation-apiemail-verificationemail-verification-apiemail-verifierhacktoberfest
fix: Add better checks for existing mailboxes (#819)
Amaury9f88d01fad2c
diff --git a/Cargo.lock b/Cargo.lockindex b4ed53bd..49ddb9c0 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -357,7 +357,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"[[package]]name = "check-if-email-exists"-version = "0.8.16"+version = "0.8.17"dependencies = ["async-smtp","async-std",@@ -377,7 +377,7 @@ dependencies = [[[package]]name = "check-if-email-exists-cli"-version = "0.8.16"+version = "0.8.17"dependencies = ["check-if-email-exists","clap",@@ -390,7 +390,7 @@ dependencies = [[[package]]name = "check-if-email-exists-test-suite"-version = "0.8.16"+version = "0.8.17"dependencies = ["check-if-email-exists","serde",diff --git a/Cargo.toml b/Cargo.tomlindex 98b5264c..5b96f35d 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -1,6 +1,6 @@[package]name = "check-if-email-exists-cli"-version = "0.8.16"+version = "0.8.17"default-run = "check_if_email_exists"edition = "2018"license = "AGPL-3.0"diff --git a/Dockerfile b/Dockerfileindex bdce8e38..fb6a2f6f 100644--- a/Dockerfile+++ b/Dockerfile@@ -3,7 +3,7 @@ FROM alpine# `ciee` stands for check-if-email-existsWORKDIR /ciee# Fetch latest version-ENV CIEE_VERSION 0.8.16+ENV CIEE_VERSION 0.8.17# Install needed librariesRUN apk update && \diff --git a/README.md b/README.mdindex eb00cd3e..df5cb5be 100644--- a/README.md+++ b/README.md@@ -98,7 +98,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.16+check_if_email_exists 0.8.17Check if an email address exists without sending any email.USAGE:diff --git a/core/Cargo.toml b/core/Cargo.tomlindex 38742b60..48885d38 100644--- a/core/Cargo.toml+++ b/core/Cargo.toml@@ -1,6 +1,6 @@[package]name = "check-if-email-exists"-version = "0.8.16"+version = "0.8.17"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.rsindex 51fc6a8b..9a358448 100644--- a/core/src/smtp/mod.rs+++ b/core/src/smtp/mod.rs@@ -204,7 +204,10 @@ async fn email_deliverable(let is_deliverable = message.contains("2.1.5") ||// 250 Recipient address accepted// 250 Accepted- message.contains("accepted");+ message.contains("accepted")||+ // 250 OK+ // 250 Recipient <email> OK+ message.contains("ok");Ok(Deliverability {has_full_inbox: false,is_deliverable,diff --git a/test_suite/Cargo.toml b/test_suite/Cargo.tomlindex ecc7c725..07964ee9 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.16"+version = "0.8.17"edition = "2018"publish = false