Skip to content

Commit

Permalink
feat: Update parser.rs (reacherhq#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
2 people authored and juhniorsantos committed Apr 11, 2024
1 parent 44e226f commit 4a43236
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 4a43236

Please sign in to comment.