Sisimai::Reason::VirusDetected - Bounce reason is virusdetected or not.
virusdetected
use Sisimai::Reason::VirusDetected; print Sisimai::Reason::VirusDetected->match('5.7.1 Email not accept'); # 1
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.
securityerror
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>
text()
text() returns string: virusdetected.
print Sisimai::Reason::VirusDetected->text; # virusdetected
match(string)
match() returns 1 if the argument matched with patterns defined in this class.
match()
my $v = 'Your message was infected with a virus. ...'; print Sisimai::Reason::VirusDetected->match($v); # 1
true(Sisimai::Data)
true() returns 1 if the bounce reason is virusdetected. The argument must be Sisimai::Data object and this method is called only from Sisimai::Reason class.
true()
azumakuniyuki
Copyright (C) 2017 azumakuniyuki, All rights reserved.
This software is distributed under The BSD 2-Clause License.
To install Sisimai, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sisimai
CPAN shell
perl -MCPAN -e shell install Sisimai
For more information on module installation, please visit the detailed CPAN module installation guide.