module Sisimai::Reason::PolicyViolation
Sisimai::Reason::PolicyViolation
checks the bounce reason is “policyviolation” or not. This class is called only Sisimai::Reason
class.
This is the error that a policy violation was detected on a destination mail host. When a header content or a format of the original message violates security policies, or multiple addresses exist in the From: header, Sisimai
will set “policyviolation”.
Status: 5.7.0 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
- Index
Public Class Methods
# File lib/sisimai/reason/policyviolation.rb, line 46 def description; return 'Email rejected due to policy violation 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
@since 4.22.0
# File lib/sisimai/reason/policyviolation.rb, line 53 def match(argv1) return nil unless argv1 return true if Index.any? { |a| argv1.include?(a) } return false end
# File lib/sisimai/reason/policyviolation.rb, line 45 def text; return 'policyviolation'; end
The bounce reason is security error or not @param [Sisimai::Data] argvs Object to be detected the reason @return [True,False] true: is policy violation
false: is not policy violation
@since 4.22.0 @see www.ietf.org/rfc/rfc2822.txt
# File lib/sisimai/reason/policyviolation.rb, line 65 def true(_argvs) return nil end