Skip to content

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

fix: Fix parsing some invalid emails

Amaury Mcb65c0f4767b
diff --git a/core/src/smtp/parser.rs b/core/src/smtp/parser.rs
index 30bddb3c..7b19e2a4 100644
--- a/core/src/smtp/parser.rs
+++ b/core/src/smtp/parser.rs
@@ -57,7 +57,7 @@ pub fn is_invalid(e: &str) -> bool {
// 550 No such user here
|| e.contains("no such user")
// permanent: 5.1.1 MXIN501 mailbox <EMAIL> unknown (on @virginmedia.com)
- || e.contains("")
+ // || e.contains("") TODO Use regex here?
// 550 5.1.1 : Mailbox not found
// 550 Unknown address error ‘MAILBOX NOT FOUND’
|| e.contains("mailbox not found")