Skip to content

Commit

Permalink
fix: Correct message parsing for "receiving at a rate" error (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored Jul 4, 2020
1 parent 4b7bc53 commit 4b31706
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/smtp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ async fn email_deliverable(
// emails.
// 4.2.1 The user you are trying to contact is receiving mail at a rate that
if err_string
.contains("The user you are trying to contact is receiving mail at a rate that")
.contains("the user you are trying to contact is receiving mail at a rate that")
{
return Ok(Deliverability {
has_full_inbox: false,
Expand Down Expand Up @@ -278,8 +278,6 @@ async fn email_deliverable(
// 550 5.1.1 No such user - pp
// 550 No such user here
|| err_string.contains("no such user")
// 4.2.1 The user you are trying to contact is receiving mail at a rate...
|| err_string.contains("is receiving mail at a rate")
// 550 5.1.1 : Mailbox not found
// 550 Unknown address error ‘MAILBOX NOT FOUND’
|| err_string.contains("not found")
Expand Down

0 comments on commit 4b31706

Please sign in to comment.