module Sisimai::Reason::MailerError
Sisimai::Reason::MailerError
checks the bounce reason is “mailererror” or not. This class is called only Sisimai::Reason
class.
This is the error that a mailer program has not exited successfully or exited unexpectedly on a destination mail server.
X-Actual-Recipient: X-Unix; |/home/kijitora/mail/catch.php Diagnostic-Code: X-Unix; 255
Constants
- Regex
Public Class Methods
description()
click to toggle source
# File lib/sisimai/reason/mailererror.rb, line 30 def description; return 'Email returned due to a mailer program has not exited successfully'; 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/mailererror.rb, line 36 def match(argv1) return nil unless argv1 return true if argv1 =~ Regex return false end
text()
click to toggle source
# File lib/sisimai/reason/mailererror.rb, line 29 def text; return 'mailererror'; end
true(_argvs)
click to toggle source
The bounce reason is mailer error or not @param [Sisimai::Data] argvs Object to be detected the reason @return [True,False] true: is mailer error
false: is not mailer error
@see www.ietf.org/rfc/rfc2822.txt
# File lib/sisimai/reason/mailererror.rb, line 47 def true(_argvs) return nil end