Skip to content

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

Quit when we find one

Amaury Martinyede0e839c09d
diff --git a/src/main.rs b/src/main.rs
index 51fcfae8..42ac6e9b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -53,7 +53,10 @@ fn main() {
.par_iter() // Parallelize the find_any
.find_any(
|(host, port)| match smtp::email_exists(from_email, to_email, host, *port) {
- Ok(val) => val,
+ Ok(val) => {
+ println!("{}", val);
+ process::exit(0x0100);
+ }
_ => false,
},
).is_some();