module Sisimai::Reason::ContentError
Sisimai::Reason::ContentError
checks the bounce reason is “contenterror” or not This class is called only Sisimai::Reason
class.
This is the error that a destination mail server has rejected email due to header format of the email like the following. Sisimai
will set “contenterror” to the reason of email bounce if the value of Status: field in a bounce email is “5.6.*”.
Constants
- Index
Public Class Methods
# File lib/sisimai/reason/contenterror.rb, line 24 def description; return 'Email rejected due to a header format of the email'; end
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/contenterror.rb, line 30 def match(argv1) return nil unless argv1 return true if Index.any? { |a| argv1.include?(a) } return false end
# File lib/sisimai/reason/contenterror.rb, line 23 def text; return 'contenterror'; end
Rejected
email due to header format of the email @param [Sisimai::Data] argvs Object to be detected the reason @return [True,False] true: rejected due to content error
false: is not content error
@see www.ietf.org/rfc/rfc2822.txt
# File lib/sisimai/reason/contenterror.rb, line 41 def true(_argvs); return nil; end