module Sisimai::Reason::Expired
Sisimai::Reason::Expired
checks the bounce reason is “expired” or not. This class is called only Sisimai::Reason
class.
This is the error that delivery time has expired due to connection failure or network error and the message you sent has been in the queue for long time.
Constants
- Index
Public Class Methods
description()
click to toggle source
# File lib/sisimai/reason/expired.rb, line 34 def description; return 'Delivery time has expired due to a connection failure'; 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/expired.rb, line 40 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/expired.rb, line 33 def text; return 'expired'; end
true(_argvs)
click to toggle source
Delivery expired due to connection failure or network error @param [Sisimai::Data] argvs Object to be detected the reason @return [True,False] true: is expired
false: is not expired
@see www.ietf.org/rfc/rfc2822.txt
# File lib/sisimai/reason/expired.rb, line 51 def true(_argvs); return nil; end