#validation #validate #free #bounce

app email-validate

free multithreaded email validation CLI, improving your email delivery

12 releases

0.1.12 Oct 9, 2023
0.1.11 Oct 7, 2023
0.1.4 Sep 23, 2023

#59 in Email

Download history 13/week @ 2023-10-29 14/week @ 2023-11-12 27/week @ 2023-11-19 54/week @ 2023-11-26 13/week @ 2023-12-03 13/week @ 2023-12-10 26/week @ 2023-12-24 12/week @ 2024-01-07 40/week @ 2024-01-28 14/week @ 2024-02-04 55/week @ 2024-02-11

109 downloads per month

AGPL-3.0

2MB
2K SLoC

version Rust minimum rustc version

Licence is AGPL-3.0 in accordance with https://github.com/reacherhq/check-if-email-exists

Information

This CLI will either accept string input of email addresses or a file(s) input(s) or a directory containing .csv files, omitting duplicates and then it will determine if the email is valid based on logic inside email check source. It will write to output with duplicates, valid and invalid emails amongst other useful information.

A run of 6000 emails across 4 csv files peaked ~190MB RAM, allowing 200 concurrent tasks across all threads. Note: careful with --concurrency, on a linux machine running systemd-resolved caused DDOS as of 2023-09-22, running unbound DNS server worked fine, this might also saturate your internet connection.

Usage/Installation

Subcommand check-string

$ cargo run -- check-string --help

Usage: email-validate check-string [OPTIONS] --input <INPUT>

Options:
      --input <INPUT>                      separated by space, coma or semicolon
      --concurrency <CONCURRENCY>          [default: 25]
      --timeout-seconds <TIMEOUT_SECONDS>  per item [default: 120]
  -h, --help                               Print help
  -V, --version                            Print version

Alt text

     

Subcommand check-file

cargo run -- check-file --help

Usage: email-validate check-file [OPTIONS] --file-input <FILE_INPUT> --dir-output <DIR_OUTPUT>

Options:
      --file-input <FILE_INPUT>            separated by newline, space, coma or semicolon
      --dir-output <DIR_OUTPUT>            Directory to output {input-file}-timeout.csv {input-file}-invalid.csv {input-file}-valid.csv
                                           {input-file}-timing.json
      --concurrency <CONCURRENCY>          [default: 25]
      --timeout-seconds <TIMEOUT_SECONDS>  per item [default: 120]
  -h, --help                               Print help
  -V, --version                            Print version

--file-input may be repeat for multiple files. Hitting Esc/CTRL+C/q will abort quit the CLI progress. The output will be a TUI progress screen identical like the subcommand check-dir.

     

Subcommand check-dir

cargo run -- check-dir --help

Usage: email-validate check-dir [OPTIONS] --dir-input <DIR_INPUT> --dir-output <DIR_OUTPUT>

Options:
      --dir-input <DIR_INPUT>              Directory containing .cvs files, it's walked recursively, the emails may be separated by newline, space, coma or
                                           semicolon
      --dir-output <DIR_OUTPUT>            Directory to output {input-file}-timeout.csv {input-file}-invalid.csv {input-file}-valid.csv
                                           {input-file}-timing.json
      --concurrency <CONCURRENCY>          [default: 25]
      --timeout-seconds <TIMEOUT_SECONDS>  per item [default: 120]
  -h, --help                               Print help
  -V, --version                            Print version

Hitting Esc/CTRL+c/q will process abort the CLI progress.

Alt text

Dependencies

~27–44MB
~717K SLoC