Skip to content

Commit 4b31706

Browse files
authored
fix: Correct message parsing for "receiving at a rate" error (#462)
1 parent 4b7bc53 commit 4b31706

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/smtp/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ async fn email_deliverable(
238238
// emails.
239239
// 4.2.1 The user you are trying to contact is receiving mail at a rate that
240240
if err_string
241-
.contains("The user you are trying to contact is receiving mail at a rate that")
241+
.contains("the user you are trying to contact is receiving mail at a rate that")
242242
{
243243
return Ok(Deliverability {
244244
has_full_inbox: false,
@@ -278,8 +278,6 @@ async fn email_deliverable(
278278
// 550 5.1.1 No such user - pp
279279
// 550 No such user here
280280
|| err_string.contains("no such user")
281-
// 4.2.1 The user you are trying to contact is receiving mail at a rate...
282-
|| err_string.contains("is receiving mail at a rate")
283281
// 550 5.1.1 : Mailbox not found
284282
// 550 Unknown address error ‘MAILBOX NOT FOUND’
285283
|| err_string.contains("not found")

0 commit comments

Comments
 (0)