module Sisimai::Reason::VirusDetected
Sisimai::Reason::VirusDetected
checks the bounce reason is “virusdetected” or not. This class is called only Sisimai::Reason
class.
This is an error that any virus or trojan horse detected in the message by a virus scanner program at a destination mail server. This reason has been divided from “securityerror” at Sisimai
4.22.0.
Your message was infected with a virus. You should download a virus scanner and check your computer for viruses. Sender: <sironeko@libsisimai.org> Recipient: <kijitora@example.jp>
Constants
- Index
Public Class Methods
description()
click to toggle source
# File lib/sisimai/reason/virusdetected.rb, line 28 def description; return 'Email rejected due to a virus scanner on a destination 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
@since 4.22.0
# File lib/sisimai/reason/virusdetected.rb, line 35 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/virusdetected.rb, line 27 def text; return 'virusdetected'; end
true(_argvs)
click to toggle source
The bounce reason is security error or not @param [Sisimai::Data] argvs Object to be detected the reason @return [True,False] true: virus detected
false: virus was not detected
@since 4.22.0 @see www.ietf.org/rfc/rfc2822.txt
# File lib/sisimai/reason/virusdetected.rb, line 47 def true(_argvs) return nil end