Skip to content

Commit

Permalink
fix: Add "Invalid email address" check (#471)
Browse files Browse the repository at this point in the history
* fix: Add "Invalid email address" check

* Bump 0.8.11
  • Loading branch information
amaury1093 authored Jul 6, 2020
1 parent a4f0c8d commit 3b03617
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "check-if-email-exists"
version = "0.8.10"
version = "0.8.11"
authors = ["Amaury Martiny <amaury.martiny@protonmail.com>"]
categories = ["email"]
description = "Check if an email address exists without sending any email"
Expand Down
2 changes: 2 additions & 0 deletions core/src/smtp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion test_suite/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "check-if-email-exists-test-suite"
version = "0.8.10"
version = "0.8.11"
edition = "2018"
publish = false

Expand Down

0 comments on commit 3b03617

Please sign in to comment.