Skip to content

Commit

Permalink
Merge pull request #20 from getconversio/host-blocked
Browse files Browse the repository at this point in the history
Detect host blocked errors
  • Loading branch information
jmnsf authored Apr 22, 2019
2 parents c4ea8db + 6fcc1b8 commit 4d38f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const isInvalidMailboxError = smtpReply => {
if (
smtpReply &&
/^(510|511|513|550|551|553)/.test(smtpReply) &&
!/(junk|spam|openspf|spoofing)/ig.test(smtpReply)
!/(junk|spam|openspf|spoofing|host.+blocked)/ig.test(smtpReply)
) return true;

return false;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "email-deep-validator",
"version": "3.1.0",
"version": "3.2.0",
"description": "Verify email address checking MX records, and SMTP connection.",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 4d38f3d

Please sign in to comment.