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
chore: Small cleanups (#87)
Amaury Martiny6e22908aed0a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7ee5a0b7..bf96139b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,7 +2,7 @@All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.-## [0.6.0](https://github.com/amaurymartiny/check_if_email_exists/compare/v0.5.1...v0.6.0) (2019-12-01)+## [0.6.0](https://github.com/amaurymartiny/check_if_email_exists/compare/v0.5.0...v0.6.0) (2019-12-01)### ⚠ BREAKING CHANGESdiff --git a/Dockerfile b/Dockerfileindex d727c4bb..f11da0fd 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,17 +1,16 @@-FROM ubuntu+FROM alpine# `ciee` stands for check-if-email-existsWORKDIR /cieeENV CIEE_VERSION 0.6.0# Install needed libraries-RUN apt-get update && \- apt-get install -y wget+RUN apk update && \+ apk add --no-cache openssl wget && \+ rm -rf /var/cache/apk/*# Download the binary from Github-RUN wget https://github.com/amaurymartiny/check-if-email-exists/releases/download/v${CIEE_VERSION}/check-if-email-exists-v${CIEE_VERSION}-x86_64-unknown-linux-gnu.tar.gz \- && tar -xvzf check-if-email-exists-v${CIEE_VERSION}-x86_64-unknown-linux-gnu.tar.gz--RUN ls -la+RUN wget https://github.com/amaurymartiny/check-if-email-exists/releases/download/v${CIEE_VERSION}/check-if-email-exists-v${CIEE_VERSION}-x86_64-unknown-linux-musl.tar.gz \+ && tar -xvzf check-if-email-exists-v${CIEE_VERSION}-x86_64-unknown-linux-musl.tar.gzCMD ["./check_if_email_exists", "--http"]diff --git a/README.md b/README.mdindex 1419d064..b57f7b6a 100644--- a/README.md+++ b/README.md@@ -167,8 +167,10 @@ The output will be a JSON with the below format, the fields should be self-expla```json{"input": "[email protected]",+ "misc": {+ "is_disposable": false+ },"mx": {- "is_disposable": false,"records": ["alt3.gmail-smtp-in.l.google.com.","gmail-smtp-in.l.google.com.",@@ -226,4 +228,8 @@ The 1st version of this tool was a simple bash script which made a telnet call.## 📜 License-GPL-3.0. See the [LICENSE](./LICENSE) file for more info.+The source code is available under the license beard dude loves. See the [LICENSE](./LICENSE) file for more info.++## ❤️ Sponsor++Please [support me](https://github.com/sponsors/amaurymartiny) with a wrap from my favorite Falafel dealer.diff --git a/src/main.rs b/src/main.rsindex d317f967..3c6e1211 100644--- a/src/main.rs+++ b/src/main.rs@@ -35,9 +35,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {let yaml = clap::load_yaml!("cli.yml");let matches = App::from_yaml(yaml).get_matches();- let to_email_flag = matches.value_of("TO_EMAIL");-- if let Some(to_email) = to_email_flag {+ if let Some(to_email) = matches.value_of("TO_EMAIL") {let from_email = matches.value_of("FROM_EMAIL").expect("FROM_EMAIL has a default value. qed.");