module Sisimai::Reason::NetworkError

Sisimai::Reason::NetworkError checks the bounce reason is “networkerror” or not. This class is called only Sisimai::Reason class.

This is the error that SMTP connection failed due to DNS look up failure or other network problems. This reason has added in Sisimai 4.1.12 and does not exist in any version of bounceHammer.

A message is delayed for more than 10 minutes for the following
list of recipients:

kijitora@neko.example.jp: Network error on destination MXs

Constants

Index

Public Class Methods

description() click to toggle source
# File lib/sisimai/reason/networkerror.rb, line 35
def description; return 'SMTP connection failed due to DNS look up failure or other network problems'; end
match(argv1) click to toggle source

Try to match that the given text and regular expressions @param [String] argv1 String to be matched with regular expressions @return [True,False] false: Did not match

true: Matched
# File lib/sisimai/reason/networkerror.rb, line 41
def match(argv1)
  return nil unless argv1
  return true if Index.any? { |a| argv1.include?(a) }
  return false
end
text() click to toggle source
# File lib/sisimai/reason/networkerror.rb, line 34
def text; return 'networkerror'; end
true(_argvs) click to toggle source

The bounce reason is network error or not @param [Sisimai::Data] argvs Object to be detected the reason @return [True,False] true: is network error

false: is not network error

@see www.ietf.org/rfc/rfc2822.txt

# File lib/sisimai/reason/networkerror.rb, line 52
def true(_argvs)
  return nil
end