Skip to content

Commit

Permalink
fix: Add additional error check for undeliverable (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored May 23, 2020
1 parent cdcd38c commit e52a8f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/smtp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ 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 e52a8f0

Please sign in to comment.