Sisimai::Reason::VirusDetected(3pm)

Sisimai::Reason::VirusDetected3pm

Bounce reason is "virusdetected" or not.

Usage

    use Sisimai::Reason::VirusDetected;
    print Sisimai::Reason::VirusDetected->match('5.7.1 Email not accept');   # 1

Overview

"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 the virus scanner program at the 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:    <[email protected]>
    Recipient: <[email protected]>

Class methods

"text()"

text() method returns the fixed string "virusdetected".

    print Sisimai::Reason::VirusDetected->text;  # virusdetected

"match(string)"

match() method returns 1 if the argument matched with patterns defined in this class.

    my $v = 'Your message was infected with a virus. ...';
    print Sisimai::Reason::VirusDetected->match($v);    # 1

"true(Sisimai::Fact)"

true() method returns 1 if the bounce reason is "virusdetected". The argument must be "Sisimai::Fact" object and this method is called only from "Sisimai::Reason" class.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

azumakuniyuki

License

This software is distributed under The BSD 2-Clause License.

From libsisimai-perl 5.3.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.