Skip to content

Commit

Permalink
Update the comment in Sisimai::Reason::HostUnknown.true
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Sep 6, 2024
1 parent aa51dd0 commit cbf9ebf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sisimai/reason/hostunknown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ def true(argvs)
statuscode = argvs['deliverystatus'] || ''

if Sisimai::SMTP::Status.name(statuscode).to_s == 'hostunknown'
# Status: 5.1.2
# Diagnostic-Code: SMTP; 550 Host unknown
# To prevent classifying DNS errors as "HostUnknown"
require 'sisimai/reason/networkerror'
return true unless Sisimai::Reason::NetworkError.match(issuedcode)
else
# Check the value of Diagnosic-Code: header with patterns
# Status: 5.1.2
# Diagnostic-Code: SMTP; 550 Host unknown
return true if match(issuedcode)
end

Expand Down

0 comments on commit cbf9ebf

Please sign in to comment.