File Coverage

lib/Sisimai/RFC5965.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Sisimai::RFC5965;
2 88     88   91955 use v5.26;
  88         342  
3 88     88   508 use strict;
  88         200  
  88         3072  
4 88     88   419 use warnings;
  88         154  
  88         8571  
5 88         7598 use constant FIELDINDEX => [
6             # https://datatracker.ietf.org/doc/html/rfc5965
7             # Required Fields
8             # The following report header fields MUST appear exactly once:
9             'Feedback-Type', 'User-Agent', 'Version',
10              
11             # Optional Fields Appearing Once
12             # The following header fields are optional and MUST NOT appear more than once:
13             # - "Reporting-MTA" is defined in Sisimai::RFC1894->FIELDINDEX()
14             'Original-Envelope-Id', 'Original-Mail-From', 'Arrival-Date', 'Source-IP', 'Incidents',
15              
16             # Optional Fields Appearing Multiple Times
17             # The following set of header fields are optional and may appear any number of times as
18             # appropriate:
19             'Authentication-Results', 'Original-Rcpt-To', 'Reported-Domain', 'Reported-URI',
20              
21             # The historic field "Received-Date" SHOULD also be accepted and interpreted identically to
22             # "Arrival-Date". However, if both are present, the report is malformed and SHOULD be
23             # treated as described in Section 4.
24             'Received-Date',
25 88     88   585 ];
  88         200  
26              
27             1;
28             __END__