| 1 | package Sisimai::Reason::OnHold; | ||||||||||||||||||||
| 2 | 5 | ▶ | use v5.26; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 5 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 5 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 5 | ▶ | use Sisimai::Eb; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 1 | ▶ | sub text { $Sisimai::Eb::Re___1 } | ||||||||||||||||||
|
Subroutine
text: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 8 | 4 | ▶ | sub description { 'Sisimai could not decided the reason due to there is no (or less) detailed information for judging the reason' } | ||||||||||||||||||
|
Subroutine
description: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 9 | 44 | ▶ | sub match { | ||||||||||||||||||
|
Subroutine
match: called CC=1 SCAR=0.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 | 44 | return 0; | |||||||||||||||||||
| 16 | } | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 2 | ▶ | sub true { | ||||||||||||||||||
|
Subroutine
true: called CC=6 SCAR=18.8
Pod
undocumented
| |||||||||||||||||||||
| 19 | # On hold, Could not decide the bounce reason... | ||||||||||||||||||||
| 20 | # @param [Sisimai::Fact] argvs Object to be detected the reason | ||||||||||||||||||||
| 21 | # @return [Integer] 1: Status code is "OnHold" | ||||||||||||||||||||
| 22 | # 0: is not "OnHold" | ||||||||||||||||||||
| 23 | # @since v4.1.28 | ||||||||||||||||||||
| 24 | # @see http://www.ietf.org/rfc/rfc2822.txt | ||||||||||||||||||||
| 25 | 2 | my $class = shift; | |||||||||||||||||||
| 26 | 2 | ▶ | my $argvs = shift // return 0; return 0 unless $argvs->{'deliverystatus'}; | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
shift() // (return 0)
MC/DC100%1/1
shift() // (return 0)
shift()
Truth table100%2/2
A
A= shift()
| |||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | 1 | ▶ | return 1 if $argvs->{'reason'} eq $Sisimai::Eb::Re___1; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 29 | 1 | ▶ | return 1 if (Sisimai::SMTP::Status->name($argvs->{'deliverystatus'}) || '') eq $Sisimai::Eb::Re___1; | ||||||||||||||||||
|
Branch: 1 branch
Condition50%1/2
'Sisimai::SMTP::Status'->name($argvs->{'deliverystatus'}) || ''
MC/DC0%0/1
'Sisimai::SMTP::Status'->name($argvs->{'deliverystatus'}) || ''
'Sisimai::SMTP::Status'->name($argvs->{'deliverystatus'})
Truth table50%1/2
A
A= 'Sisimai::SMTP::Status'->name($argvs->{'deliverystatus'})
| |||||||||||||||||||||
| 30 | 1 | return 0 | |||||||||||||||||||
| 31 | } | ||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | 5 | 1; | |||||||||||||||||||
| 34 | __END__ | ||||||||||||||||||||