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
Improve debug logs
Amaury Martiny9d317029d310
diff --git a/src/main.rs b/src/main.rsindex 57d30e57..3a04c3df 100644--- a/src/main.rs+++ b/src/main.rs@@ -23,16 +23,16 @@ fn main() {// Calling .unwrap() is safe here because "TO" is requiredlet to_email = matches.value_of("TO").unwrap();- debug!("User inputted email {}", to_email);+ debug!("User inputted email '{}'", to_email);let domain = match to_email.split("@").skip(1).next() {Some(i) => i,None => {- error!("{} is not a valid email.", to_email);+ error!("'{}' is not a valid email.", to_email);process::exit(1);}};- debug!("Domain name is: {}", domain);+ debug!("Domain name is '{}'", domain);debug!("Getting MX lookup...");let hosts = mx_hosts::get_mx_lookup(domain);diff --git a/src/telnet.rs b/src/telnet.rsindex a11a78dd..45f1cab4 100644--- a/src/telnet.rs+++ b/src/telnet.rs@@ -102,7 +102,10 @@ pub fn connect(from: &str, to: &str, domain: &Name, port: u16) -> bool {}match step {- Step::Found => true,+ Step::Found => {+ debug!("Email address exists.");+ true+ }_ => false,}}