module Sisimai::Reason::SystemError

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

This is the error that an email has bounced due to system error on the remote host such as LDAP connection failure or other internal system error.

<kijitora@example.net>:
Unable to contact LDAP server. (#4.4.3)I'm not going to try again; this
message has been in the queue too long.

Constants

Index

Public Class Methods

description() click to toggle source
# File lib/sisimai/reason/systemerror.rb, line 39
def description; return 'Email returned due to system error on the remote host'; 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/systemerror.rb, line 45
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/systemerror.rb, line 38
def text; return 'systemerror'; end
true(_argvs) click to toggle source

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

false: is not system error

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

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