line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Sisimai::Reason::SystemFull; |
2
|
15
|
|
|
15
|
|
1567
|
use feature ':5.10'; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
877
|
|
3
|
15
|
|
|
15
|
|
72
|
use strict; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
226
|
|
4
|
15
|
|
|
15
|
|
55
|
use warnings; |
|
15
|
|
|
|
|
23
|
|
|
15
|
|
|
|
|
2428
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
1
|
5
|
sub text { 'systemfull' } |
7
|
4
|
|
|
4
|
0
|
14
|
sub description { "Email rejected due to a destination mail server's disk is full" } |
8
|
|
|
|
|
|
|
sub match { |
9
|
|
|
|
|
|
|
# Try to match that the given text and regular expressions |
10
|
|
|
|
|
|
|
# @param [String] argv1 String to be matched with regular expressions |
11
|
|
|
|
|
|
|
# @return [Integer] 0: Did not match |
12
|
|
|
|
|
|
|
# 1: Matched |
13
|
|
|
|
|
|
|
# @since v4.0.0 |
14
|
202
|
|
|
202
|
1
|
293
|
my $class = shift; |
15
|
202
|
|
50
|
|
|
418
|
my $argv1 = shift // return undef; |
16
|
|
|
|
|
|
|
|
17
|
202
|
|
|
|
|
268
|
state $index = [ |
18
|
|
|
|
|
|
|
'mail system full', |
19
|
|
|
|
|
|
|
'requested mail action aborted: exceeded storage allocation', # MS Exchange |
20
|
|
|
|
|
|
|
]; |
21
|
202
|
100
|
|
|
|
337
|
return 1 if grep { rindex($argv1, $_) > -1 } @$index; |
|
404
|
|
|
|
|
810
|
|
22
|
201
|
|
|
|
|
427
|
return 0; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub true { |
26
|
|
|
|
|
|
|
# The bounce reason is system full or not |
27
|
|
|
|
|
|
|
# @param [Sisimai::Data] argvs Object to be detected the reason |
28
|
|
|
|
|
|
|
# @return [Integer] 1: is system full |
29
|
|
|
|
|
|
|
# 0: is not system full |
30
|
|
|
|
|
|
|
# @see http://www.ietf.org/rfc/rfc2822.txt |
31
|
2
|
|
|
2
|
0
|
5
|
return undef; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
__END__ |