module Sisimai::Reason::TooManyConn
Sisimai::Reason::TooManyConn
checks the bounce reason is “toomanyconn” or not. This class is called only Sisimai::Reason
class.
This is the error that SMTP
connection was rejected temporarily due to too many concurrency connections to the remote server. This reason has added in Sisimai
4.1.26 and does not exist in any version of bounceHammer.
<kijitora@example.ne.jp>: host mx02.example.ne.jp[192.0.1.20] said: 452 4.3.2 Connection rate limit exceeded. (in reply to MAIL FROM command)
Constants
- Index
Public Class Methods
description()
click to toggle source
# File lib/sisimai/reason/toomanyconn.rb, line 33 def description; return 'SMTP connection rejected temporarily due to too many concurrency connections to the remote host'; 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/toomanyconn.rb, line 39 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/toomanyconn.rb, line 32 def text; return 'toomanyconn'; end
true(argvs)
click to toggle source
Rejected
by domain or address filter ? @param [Sisimai::Data] argvs Object to be detected the reason @return [True,False] true: is filtered
false: is not filtered
@see www.ietf.org/rfc/rfc2822.txt
# File lib/sisimai/reason/toomanyconn.rb, line 50 def true(argvs) return true if argvs.reason == 'toomanyconn' return true if Sisimai::SMTP::Status.name(argvs.deliverystatus).to_s == 'toomanyconn' return true if match(argvs.diagnosticcode.downcase) return false end