| 1 | package Sisimai::Reason::SystemError; | ||||||||||||
| 2 | 40 | ▶ | use v5.26; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 40 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 40 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 40 | ▶ | use Sisimai::Eb; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 40 | ▶ | use Sisimai::String; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 5 | ▶ | sub text { $Sisimai::Eb::RePROC } | ||||||||||
|
Subroutine
text: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 9 | 4 | ▶ | sub description { 'Email returned due to system error on the remote host' } | ||||||||||
|
Subroutine
description: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 10 | 592 | ▶ | sub match { | ||||||||||
|
Subroutine
match: called CC=4 SCAR=13.9
Pod
documented
| |||||||||||||
| 11 | # Try to match that the given text and regular expressions | ||||||||||||
| 12 | # @param [String] argv1 String to be matched with regular expressions | ||||||||||||
| 13 | # @return [Integer] 0: Did not match | ||||||||||||
| 14 | # 1: Matched | ||||||||||||
| 15 | # @since v4.0.0 | ||||||||||||
| 16 | 592 | my $class = shift; | |||||||||||
| 17 | 592 | ▶ | 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()
| |||||||||||||
| 18 | |||||||||||||
| 19 | 591 | state $index = [ | |||||||||||
| 20 | "aliasing/forwarding loop broken", | ||||||||||||
| 21 | "automatic homedir creator crashed", # qmail-ldap-1.03-20040101.patch:19817 - 19866 | ||||||||||||
| 22 | "can't create user output file", | ||||||||||||
| 23 | "cannot send e-mail to yourself", | ||||||||||||
| 24 | "could not load ", | ||||||||||||
| 25 | "delivery to file forbidden", # Exim/deliver.c:5614 | ||||||||||||
| 26 | "delivery to pipe forbidden", # Exim/deliver.c:5624 | ||||||||||||
| 27 | "input/output error", | ||||||||||||
| 28 | "interrupted system call", | ||||||||||||
| 29 | "it encountered an error while being processed", | ||||||||||||
| 30 | "it would create a mail loop", | ||||||||||||
| 31 | "ldap attribute", # qmail-ldap-1.03-20040101.patch:19817 - 19866 | ||||||||||||
| 32 | "ldap lookup", # qmail-ldap-1.03-20040101.patch:19817 - 19866 | ||||||||||||
| 33 | "ldap server", # qmail-ldap-1.03-20040101.patch:19817 - 19866 | ||||||||||||
| 34 | "lmtp error after ", # Exim/transports/lmtp.c:186 | ||||||||||||
| 35 | "local delivery failed", # Exim/transports/pipe.c:1156 | ||||||||||||
| 36 | "loop back warning:", # FML | ||||||||||||
| 37 | "loop was found in the mail exchanger", | ||||||||||||
| 38 | "loops back to myself", | ||||||||||||
| 39 | "mail transport unavailable", | ||||||||||||
| 40 | "may cause mail loop", # FML | ||||||||||||
| 41 | "no such file or directory", | ||||||||||||
| 42 | "error while executing qmail-forward", # qmail-ldap-1.03-20040101.patch:19817 - 19866 | ||||||||||||
| 43 | "queue file write error", | ||||||||||||
| 44 | "recipient deferred because there is no mdb", | ||||||||||||
| 45 | "remote server is misconfigured", | ||||||||||||
| 46 | "service currently unavailable", | ||||||||||||
| 47 | "several matches found in domino directory", # Donimo | ||||||||||||
| 48 | "temporary local problem", | ||||||||||||
| 49 | "timeout waiting for input", | ||||||||||||
| 50 | "too many results returned but needs to be unique", # qmail-ldap-1.03-20040101.patch:19817 - 19866 | ||||||||||||
| 51 | "transaction failed ", | ||||||||||||
| 52 | ]; | ||||||||||||
| 53 | 591 | state $pairs = [ | |||||||||||
| 54 | ["config", " error"], | ||||||||||||
| 55 | ["fml ", "has detected a loop condition so that"], # FML | ||||||||||||
| 56 | ["internal ", "error"], | ||||||||||||
| 57 | ["local ", "error"], | ||||||||||||
| 58 | ["proxy", "broken pipe"], | ||||||||||||
| 59 | ["unable to connect ", "daemon"], | ||||||||||||
| 60 | ]; | ||||||||||||
| 61 | 591 | ▶ | return 1 if grep { rindex($argv1, $_) > -1 } @$index; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 62 | 551 | ▶ | return 1 if grep { Sisimai::String->aligned(\$argv1, $_) } @$pairs; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 63 | 539 | return 0; | |||||||||||
| 64 | } | ||||||||||||
| 65 | |||||||||||||
| 66 | 2 | ▶ | sub true { | ||||||||||
|
Subroutine
true: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 67 | # The bounce reason is system error or not | ||||||||||||
| 68 | # @param [Sisimai::Fact] argvs Object to be detected the reason | ||||||||||||
| 69 | # @return [Integer] 1: is system error | ||||||||||||
| 70 | # 0: is not system error | ||||||||||||
| 71 | # @see http://www.ietf.org/rfc/rfc2822.txt | ||||||||||||
| 72 | 2 | return 0; | |||||||||||
| 73 | } | ||||||||||||
| 74 | |||||||||||||
| 75 | 40 | 1; | |||||||||||
| 76 | __END__ | ||||||||||||