Skip to content

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

fix(core): Yahoo add back IDENTIFIER_EXISTS

Amaury2b635564efb3
diff --git a/core/src/smtp/yahoo.rs b/core/src/smtp/yahoo.rs
index b23d0b1b..91b09af5 100644
--- a/core/src/smtp/yahoo.rs
+++ b/core/src/smtp/yahoo.rs
@@ -213,10 +213,10 @@ pub async fn check_yahoo(
response
);
- let username_exists = response
- .errors
- .iter()
- .any(|item| item.name == "userId" && item.error == "IDENTIFIER_NOT_AVAILABLE");
+ let username_exists = response.errors.iter().any(|item| {
+ item.name == "userId"
+ && (item.error == "IDENTIFIER_NOT_AVAILABLE" || item.error == "IDENTIFIER_EXISTS")
+ });
Ok(SmtpDetails {
can_connect_smtp: true,