module Sisimai::Rhost::IUA
Sisimai::Rhost
detects the bounce reason from the content of Sisimai::Data
object as an argument of get() method when the value of “rhost” of the object is “*.email.ua”. This class is called only Sisimai::Data
class.
Constants
- ErrorCodes
Imported from p5-Sisimail/lib/Sisimai/Rhost/IUA.pm
Public Class Methods
get(argvs)
click to toggle source
Detect bounce reason from www.i.ua/ @param [Sisimai::Data] argvs Parsed email object @return [String] The bounce reason at www.i.ua/
# File lib/sisimai/rhost/iua.rb, line 26 def get(argvs) return argvs.reason unless argvs.reason.empty? if cv = argvs.diagnosticcode.downcase.match(%r|[.]i[.]ua/err/(\d+)|) return ErrorCodes[cv[1]] || '' end return '' end