Skip to content

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

fix: Add better checks for existing mailboxes (#819)

Amaury9f88d01fad2c
diff --git a/Cargo.lock b/Cargo.lock
index 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.toml
index 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/Dockerfile
index bdce8e38..fb6a2f6f 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.16
+ENV CIEE_VERSION 0.8.17
# Install needed libraries
RUN apk update && \
diff --git a/README.md b/README.md
index 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.17
Check if an email address exists without sending any email.
USAGE:
diff --git a/core/Cargo.toml b/core/Cargo.toml
index 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.rs
index 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.toml
index 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