Skip to content

Commit

Permalink
feat: Update parser.rs (#1345)
Browse files Browse the repository at this point in the history
* Update parser.rs

found two errors 
Recipient not found and recipient is not exist

* Update core/src/smtp/parser.rs

---------

Co-authored-by: Amaury <1293565+amaury1729@users.noreply.github.com>
  • Loading branch information
z3d3m0n and amaury1093 authored Oct 9, 2023
1 parent 5e4bf16 commit 8269f22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/smtp/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ pub fn is_invalid(e: &str, email: &EmailAddress) -> bool {
|| e.contains("address error")
// E-mail address is not handled by this system (on @kaimayfair.co.uk)
|| e.contains("address is not handled")
// permanent: 5.1.1 recipient is not exist (on @sim.com)
|| e.contains("recipient is not exist")
// permanent: 5.1.1 <EMAIL> Recipient not found. (on @4polymer.com)
|| e.contains("recipient not found")
}

/// Check that the mailbox has a full inbox.
Expand Down

0 comments on commit 8269f22

Please sign in to comment.