| 1 | package Sisimai::Reason::SystemFull; | ||||||||||||
| 2 | 34 | ▶ | use v5.26; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 34 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 34 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 34 | ▶ | use Sisimai::Eb; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 1 | ▶ | sub text { $Sisimai::Eb::ReDISK } | ||||||||||
|
Subroutine
text: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 8 | 4 | ▶ | sub description { "Email rejected due to a destination mail server's disk is full" } | ||||||||||
|
Subroutine
description: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 9 | 457 | ▶ | sub match { | ||||||||||
|
Subroutine
match: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||
| 10 | # Try to match that the given text and regular expressions | ||||||||||||
| 11 | # @param [String] argv1 String to be matched with regular expressions | ||||||||||||
| 12 | # @return [Integer] 0: Did not match | ||||||||||||
| 13 | # 1: Matched | ||||||||||||
| 14 | # @since v4.0.0 | ||||||||||||
| 15 | 457 | my $class = shift; | |||||||||||
| 16 | 457 | ▶ | my $argv1 = shift // return 0; | ||||||||||
|
Condition100%2/2
shift() // (return 0)
MC/DC100%1/1
shift() // (return 0)
shift()
Truth table100%2/2
A
A= shift()
| |||||||||||||
| 17 | |||||||||||||
| 18 | 456 | state $index = [ | |||||||||||
| 19 | 'exceeded storage allocation', # MS Exchange | ||||||||||||
| 20 | 'mail system full', | ||||||||||||
| 21 | ]; | ||||||||||||
| 22 | 456 | ▶ | return 1 if grep { rindex($argv1, $_) > -1 } @$index; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 23 | 455 | return 0; | |||||||||||
| 24 | } | ||||||||||||
| 25 | |||||||||||||
| 26 | 2 | ▶ | sub true { | ||||||||||
|
Subroutine
true: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 27 | # The bounce reason is system full or not | ||||||||||||
| 28 | # @param [Sisimai::Fact] argvs Object to be detected the reason | ||||||||||||
| 29 | # @return [Integer] 1: is system full | ||||||||||||
| 30 | # 0: is not system full | ||||||||||||
| 31 | # @see http://www.ietf.org/rfc/rfc2822.txt | ||||||||||||
| 32 | 2 | return 0; | |||||||||||
| 33 | } | ||||||||||||
| 34 | |||||||||||||
| 35 | 34 | 1; | |||||||||||
| 36 | __END__ | ||||||||||||