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
fix: Add debug logs for Yahoo
Amaury Martinye53467006f9f
diff --git a/core/src/smtp/yahoo.rs b/core/src/smtp/yahoo.rsindex c78f63a1..39d095b5 100644--- a/core/src/smtp/yahoo.rs+++ b/core/src/smtp/yahoo.rs@@ -15,6 +15,7 @@// along with this program. If not, see <https://www.gnu.org/licenses/>.use super::SmtpDetails;+use crate::util::constants::LOG_TARGET;use crate::util::ser_with_display::ser_with_display;use async_smtp::EmailAddress;use http_types::Error as HttpError;@@ -114,6 +115,8 @@ pub async fn check_yahoo(to_email: &EmailAddress) -> Result<SmtpDetails, YahooErreturn Err(YahooError::NoCookie);}};+ log::debug!(target: LOG_TARGET, "Yahoo 1st response: {:?}", response);+ log::debug!(target: LOG_TARGET, "Yahoo cookies: {:?}", cookies);let to_email = to_email.to_string();let username = to_email@@ -150,6 +153,8 @@ pub async fn check_yahoo(to_email: &EmailAddress) -> Result<SmtpDetails, YahooEr.recv_json::<FormResponse>().await?;+ log::debug!(target: LOG_TARGET, "Yahoo 2nd response: {:?}", response);+let username_exists = response.errors.iter()