module Sisimai::Rhost::TencentQQ
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 “mx*.qq.com”. This class is called only Sisimai::Data
class.
Constants
- MessagesOf
Imported from p5-Sisimail/lib/Sisimai/Rhost/TencentQQ.pm
Public Class Methods
get(argvs)
click to toggle source
Detect bounce reason from Tencent QQ @param [Sisimai::Data] argvs Parsed email object @return [String] The bounce reason at Tencent QQ
# File lib/sisimai/rhost/tencentqq.rb, line 32 def get(argvs) return argvs.reason unless argvs.reason.empty? statusmesg = argvs.diagnosticcode.downcase reasontext = '' MessagesOf.each_key do |e| # Try to match the error message with message patterns defined in $MessagesOf next unless statusmesg.include?(e) reasontext = MessagesOf[e] break end return reasontext end