Skip to content

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

fix(core): Fix hotmail headless option parsing

Amaury M6ddc3b96da0d
diff --git a/core/src/smtp/mod.rs b/core/src/smtp/mod.rs
index e27f255c..a8b6adc8 100644
--- a/core/src/smtp/mod.rs
+++ b/core/src/smtp/mod.rs
@@ -318,7 +318,7 @@ async fn check_smtp_without_retry(
.map_err(|err| err.into());
}
#[cfg(feature = "headless")]
- if host.to_lowercase().to_string().contains("outlook") {
+ if input.hotmail_use_headless && host.to_lowercase().to_string().contains("outlook") {
return hotmail::check_password_recovery(to_email).map_err(|err| err.into());
}
diff --git a/core/src/util/input_output.rs b/core/src/util/input_output.rs
index 009d7bbe..d1c8ea17 100644
--- a/core/src/util/input_output.rs
+++ b/core/src/util/input_output.rs
@@ -230,8 +230,8 @@ impl CheckEmailInput {
/// password recovery page to check whether an email exists or not.
/// Defaults to false.
#[cfg(feature = "headless")]
- pub fn set_hotmail_use_headless(&mut self, use_api: bool) -> &mut CheckEmailInput {
- self.yahoo_use_api = use_api;
+ pub fn set_hotmail_use_headless(&mut self, use_headless: bool) -> &mut CheckEmailInput {
+ self.hotmail_use_headless = use_headless;
self
}
}