module Sisimai::Reason::SecurityError
Sisimai::Reason::SecurityError
checks the bounce reason is “securityerror” or not. This class is called only Sisimai::Reason
class.
This is the error that a security violation was detected on a destination mail server. Depends on the security policy on the server, a sender's email address is camouflaged address.
Sisimai
will set “securityerror” to the reason of email bounce if the value of Status: field in a bounce email is “5.7.*”.
Action: failed Status: 5.7.1 Remote-MTA: DNS; gmail-smtp-in.l.google.com Diagnostic-Code: SMTP; 552-5.7.0 Our system detected an illegal attachment on your message. Please Last-Attempt-Date: Tue, 28 Apr 2009 11:02:45 +0900 (JST)
Constants
- Regex
Public Class Methods
# File lib/sisimai/reason/securityerror.rb, line 50 def description; return 'Email rejected due to security violation was detected on a destination host'; end
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/securityerror.rb, line 56 def match(argv1) return nil unless argv1 return true if argv1 =~ Regex return false end
# File lib/sisimai/reason/securityerror.rb, line 49 def text; return 'securityerror'; end
The bounce reason is security error or not @param [Sisimai::Data] argvs Object to be detected the reason @return [True,False] true: is security error
false: is not security error
@see www.ietf.org/rfc/rfc2822.txt
# File lib/sisimai/reason/securityerror.rb, line 67 def true(_argvs) return nil end