line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Sisimai::Reason::SyntaxError; |
2
|
11
|
|
|
11
|
|
1385
|
use feature ':5.10'; |
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
837
|
|
3
|
11
|
|
|
11
|
|
60
|
use strict; |
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
250
|
|
4
|
11
|
|
|
11
|
|
49
|
use warnings; |
|
11
|
|
|
|
|
16
|
|
|
11
|
|
|
|
|
1756
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
1
|
17
|
sub text { 'syntaxerror' } |
7
|
4
|
|
|
4
|
0
|
14
|
sub description { 'Email rejected due to syntax error at sent commands in SMTP session' } |
8
|
45
|
|
|
45
|
1
|
103
|
sub match { return undef } |
9
|
|
|
|
|
|
|
sub true { |
10
|
|
|
|
|
|
|
# Connection rejected due to syntax error or not |
11
|
|
|
|
|
|
|
# @param [Sisimai::Data] argvs Object to be detected the reason |
12
|
|
|
|
|
|
|
# @return [Integer] 1: Rejected due to syntax error |
13
|
|
|
|
|
|
|
# 0: is not syntax error |
14
|
|
|
|
|
|
|
# @since v4.1.25 |
15
|
|
|
|
|
|
|
# @see http://www.ietf.org/rfc/rfc2822.txt |
16
|
62
|
|
|
62
|
0
|
118
|
my $class = shift; |
17
|
62
|
|
100
|
|
|
205
|
my $argvs = shift // return undef; |
18
|
|
|
|
|
|
|
|
19
|
61
|
50
|
|
|
|
167
|
return 1 if $argvs->reason eq 'syntaxerror'; |
20
|
61
|
100
|
|
|
|
376
|
return 1 if $argvs->replycode =~ /\A[45]0[0-7]\z/; |
21
|
51
|
|
|
|
|
355
|
return 0; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
__END__ |