| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Sisimai::Reason::BadReputation; |
|
2
|
49
|
|
|
49
|
|
2687
|
use v5.26; |
|
|
49
|
|
|
|
|
157
|
|
|
3
|
49
|
|
|
49
|
|
202
|
use strict; |
|
|
49
|
|
|
|
|
89
|
|
|
|
49
|
|
|
|
|
977
|
|
|
4
|
49
|
|
|
49
|
|
179
|
use warnings; |
|
|
49
|
|
|
|
|
90
|
|
|
|
49
|
|
|
|
|
10266
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
11
|
|
|
11
|
1
|
24
|
sub text { 'badreputation' } |
|
7
|
4
|
|
|
4
|
0
|
17
|
sub description { 'Email rejected due to an IP address reputation' } |
|
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 v5.0.0 |
|
14
|
1046
|
|
|
1046
|
1
|
3037
|
my $class = shift; |
|
15
|
1046
|
|
100
|
|
|
2359
|
my $argv1 = shift // return 0; |
|
16
|
|
|
|
|
|
|
|
|
17
|
1045
|
|
|
|
|
1226
|
state $index = [ |
|
18
|
|
|
|
|
|
|
"has been temporarily rate limited due to ip reputation", |
|
19
|
|
|
|
|
|
|
"ip/domain reputation problems", |
|
20
|
|
|
|
|
|
|
"likely suspicious due to the very low reputation", |
|
21
|
|
|
|
|
|
|
"none/bad reputation", # t-online.de |
|
22
|
|
|
|
|
|
|
"poor email reputation score", |
|
23
|
|
|
|
|
|
|
"sending mta's poor reputation", |
|
24
|
|
|
|
|
|
|
"temporarily deferred due to unexpected volume or user complaints", # Yahoo Inc. |
|
25
|
|
|
|
|
|
|
]; |
|
26
|
1045
|
100
|
|
|
|
1966
|
return 1 if grep { rindex($argv1, $_) > -1 } @$index; |
|
|
7315
|
|
|
|
|
10574
|
|
|
27
|
1033
|
|
|
|
|
2689
|
return 0; |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub true { |
|
31
|
|
|
|
|
|
|
# The bounce reason is "badreputation" or not |
|
32
|
|
|
|
|
|
|
# @param [Sisimai::Fact] argvs Object to be detected the reason |
|
33
|
|
|
|
|
|
|
# @return [Integer] 1: is badreputation |
|
34
|
|
|
|
|
|
|
# 0: is not badreputation |
|
35
|
|
|
|
|
|
|
# @see http://www.ietf.org/rfc/rfc2822.txt |
|
36
|
|
|
|
|
|
|
# @since v5.0.0 |
|
37
|
1046
|
|
|
1046
|
0
|
1555
|
my $class = shift; |
|
38
|
1046
|
|
100
|
|
|
2389
|
my $argvs = shift // return 0; |
|
39
|
|
|
|
|
|
|
|
|
40
|
1045
|
100
|
|
|
|
3528
|
return 1 if $argvs->{'reason'} eq 'badreputation'; |
|
41
|
1044
|
|
|
|
|
4865
|
return __PACKAGE__->match(lc $argvs->{'diagnosticcode'}); |
|
42
|
|
|
|
|
|
|
} |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
|
45
|
|
|
|
|
|
|
__END__ |