| 1 | package Mail::BIMI::Options; | ||||||||||||||||||||||||
| 2 | # ABSTRACT: Shared options | ||||||||||||||||||||||||
| 3 | 29 | our $VERSION = '3.20261116'; # VERSION | |||||||||||||||||||||||
| 4 | 29 | ▶ | use 5.20.0; | ||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 5 | 29 | ▶ | use Moose; | ||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 6 | 29 | ▶ | use Mail::BIMI::Prelude; | ||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||
| 9 | 40 | ▶ | has cache_backend => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_CACHE_BACKEND}//$ENV{MAIL_BIMI_CACHE_DEFAULT_BACKEND}//'File'}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=14.2
Condition40%2/5
($ENV{"MAIL_BIMI_CACHE_BACKEND"} // $ENV{"MAIL_BIMI_CACHE_DEFAULT_BACKEND"}) // "File"
$ENV{"MAIL_BIMI_CACHE_BACKEND"} // $ENV{"MAIL_BIMI_CACHE_DEFAULT_BACKEND"}
MC/DC0%0/2
($ENV{"MAIL_BIMI_CACHE_BACKEND"} // $ENV{"MAIL_BIMI_CACHE_DEFAULT_BACKEND"}) // "File"
$ENV{"MAIL_BIMI_CACHE_BACKEND"}
$ENV{"MAIL_BIMI_CACHE_DEFAULT_BACKEND"}
Truth table33%1/3
A // B
A= $ENV{"MAIL_BIMI_CACHE_BACKEND"}B= $ENV{"MAIL_BIMI_CACHE_DEFAULT_BACKEND"}
| |||||||||||||||||||||||||
| 10 | 29 | documentation => 'Cache backend to use for cacheing' ); | |||||||||||||||||||||||
| 11 | 0 | ▶ | has cache_fastmmap_share_file => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_CACHE_FASTMMAP_SHARE_FILE}//'/tmp/mail-bimi.fastmmap'}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$ENV{"MAIL_BIMI_CACHE_FASTMMAP_SHARE_FILE"} // "/tmp/mail-bimi.fastmmap"
MC/DC0%0/1
$ENV{"MAIL_BIMI_CACHE_FASTMMAP_SHARE_FILE"} // "/tmp/mail-bimi.fastmmap"
$ENV{"MAIL_BIMI_CACHE_FASTMMAP_SHARE_FILE"}
Truth table0%0/2
A
A= $ENV{"MAIL_BIMI_CACHE_FASTMMAP_SHARE_FILE"}
| |||||||||||||||||||||||||
| 12 | 29 | documentation => 'Shared cache file when using FastMmap backend' ); | |||||||||||||||||||||||
| 13 | 0 | ▶ | has cache_file_directory => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_CACHE_FILE_DIRECTORY}//'/tmp/'}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$ENV{"MAIL_BIMI_CACHE_FILE_DIRECTORY"} // "/tmp/"
MC/DC0%0/1
$ENV{"MAIL_BIMI_CACHE_FILE_DIRECTORY"} // "/tmp/"
$ENV{"MAIL_BIMI_CACHE_FILE_DIRECTORY"}
Truth table0%0/2
A
A= $ENV{"MAIL_BIMI_CACHE_FILE_DIRECTORY"}
| |||||||||||||||||||||||||
| 14 | 29 | documentation => 'Directory to store Cache files in when using File backend' ); | |||||||||||||||||||||||
| 15 | 26 | ▶ | has force_record => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_FORCE_RECORD}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 16 | 29 | documentation => 'Fake record to use' ); | |||||||||||||||||||||||
| 17 | 21 | ▶ | has http_client_timeout => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_HTTP_CLIENT_TIMEOUT}//3}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$ENV{"MAIL_BIMI_HTTP_CLIENT_TIMEOUT"} // 3
MC/DC0%0/1
$ENV{"MAIL_BIMI_HTTP_CLIENT_TIMEOUT"} // 3
$ENV{"MAIL_BIMI_HTTP_CLIENT_TIMEOUT"}
Truth table50%1/2
A
A= $ENV{"MAIL_BIMI_HTTP_CLIENT_TIMEOUT"}
| |||||||||||||||||||||||||
| 18 | 29 | documentation => 'Timeout value for HTTP' ); | |||||||||||||||||||||||
| 19 | 8 | ▶ | has http_client_max_redirect => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_HTTP_CLIENT_MAX_REDIRECT}//3}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$ENV{"MAIL_BIMI_HTTP_CLIENT_MAX_REDIRECT"} // 3
MC/DC0%0/1
$ENV{"MAIL_BIMI_HTTP_CLIENT_MAX_REDIRECT"} // 3
$ENV{"MAIL_BIMI_HTTP_CLIENT_MAX_REDIRECT"}
Truth table50%1/2
A
A= $ENV{"MAIL_BIMI_HTTP_CLIENT_MAX_REDIRECT"}
| |||||||||||||||||||||||||
| 20 | 29 | documentation => 'Maximum redirects to follow for HTTP' ); | |||||||||||||||||||||||
| 21 | 1 | ▶ | has dns_client_timeout => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_DNS_CLIENT_TIMEOUT}//5}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$ENV{"MAIL_BIMI_DNS_CLIENT_TIMEOUT"} // 5
MC/DC0%0/1
$ENV{"MAIL_BIMI_DNS_CLIENT_TIMEOUT"} // 5
$ENV{"MAIL_BIMI_DNS_CLIENT_TIMEOUT"}
Truth table50%1/2
A
A= $ENV{"MAIL_BIMI_DNS_CLIENT_TIMEOUT"}
| |||||||||||||||||||||||||
| 22 | 29 | documentation => 'Timeout value for DNS' ); | |||||||||||||||||||||||
| 23 | 30 | ▶ | has no_location_with_vmc => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_NO_LOCATION_WITH_VMC}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 24 | 29 | documentation => 'Do not check location if VMC was present' ); | |||||||||||||||||||||||
| 25 | 0 | ▶ | has cert_subdomain_is_valid => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_CERT_SUBDOMAIN_IS_VALID}//0}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$ENV{"MAIL_BIMI_CERT_SUBDOMAIN_IS_VALID"} // 0
MC/DC0%0/1
$ENV{"MAIL_BIMI_CERT_SUBDOMAIN_IS_VALID"} // 0
$ENV{"MAIL_BIMI_CERT_SUBDOMAIN_IS_VALID"}
Truth table0%0/2
A
A= $ENV{"MAIL_BIMI_CERT_SUBDOMAIN_IS_VALID"}
| |||||||||||||||||||||||||
| 26 | 29 | documentation => 'Should VMCs be valid for any subdomain of their altname' ); | |||||||||||||||||||||||
| 27 | 1 | ▶ | has no_validate_cert => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_NO_VALIDATE_CERT}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 28 | 29 | documentation => 'Do not validate VMC' ); | |||||||||||||||||||||||
| 29 | 23 | ▶ | has no_validate_svg => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_NO_VALIDATE_SVG}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 30 | 29 | documentation => 'Do not validate SVG' ); | |||||||||||||||||||||||
| 31 | 71 | ▶ | has require_dkim => ( is => 'rw', lazy => 0, default => sub {return $ENV{MAIL_BIMI_REQUIRE_DKIM}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 32 | 29 | documentation => 'Require DKIM authentication' ); | |||||||||||||||||||||||
| 33 | 23 | ▶ | has require_vmc => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_REQUIRE_VMC}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 34 | 29 | documentation => 'Require VMC validation' ); | |||||||||||||||||||||||
| 35 | 0 | ▶ | has no_experimental_vmc => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_NO_EXPERIMENTAL_VMC}//0}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$ENV{"MAIL_BIMI_NO_EXPERIMENTAL_VMC"} // 0
MC/DC0%0/1
$ENV{"MAIL_BIMI_NO_EXPERIMENTAL_VMC"} // 0
$ENV{"MAIL_BIMI_NO_EXPERIMENTAL_VMC"}
Truth table0%0/2
A
A= $ENV{"MAIL_BIMI_NO_EXPERIMENTAL_VMC"}
| |||||||||||||||||||||||||
| 36 | 29 | documentation => 'Disallow VMCs marked as experimental' ); | |||||||||||||||||||||||
| 37 | 0 | ▶ | has allowed_mark_types => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_ALLOWED_MARK_TYPES}//'*'}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$ENV{"MAIL_BIMI_ALLOWED_MARK_TYPES"} // "*"
MC/DC0%0/1
$ENV{"MAIL_BIMI_ALLOWED_MARK_TYPES"} // "*"
$ENV{"MAIL_BIMI_ALLOWED_MARK_TYPES"}
Truth table0%0/2
A
A= $ENV{"MAIL_BIMI_ALLOWED_MARK_TYPES"}
| |||||||||||||||||||||||||
| 38 | 29 | documentation => 'Optional comma separated list of allowed Certificate Mark Types' ); | |||||||||||||||||||||||
| 39 | 0 | ▶ | has ssl_root_cert => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_SSL_ROOT_CERT}//undef}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$ENV{"MAIL_BIMI_SSL_ROOT_CERT"} // undef
MC/DC0%0/1
$ENV{"MAIL_BIMI_SSL_ROOT_CERT"} // undef
$ENV{"MAIL_BIMI_SSL_ROOT_CERT"}
Truth table0%0/2
A
A= $ENV{"MAIL_BIMI_SSL_ROOT_CERT"}
| |||||||||||||||||||||||||
| 40 | 29 | documentation => 'Location of SSL Root Cert Bundle - Defaults to Mozilla::CA bundle plus Known BIMI Root Certs' ); | |||||||||||||||||||||||
| 41 | 11 | ▶ | has strict_spf => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_STRICT_SPF}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 42 | 29 | documentation => 'Disallow SPF +all' ); | |||||||||||||||||||||||
| 43 | 21 | ▶ | has svg_from_file => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_SVG_FROM_FILE}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 44 | 29 | documentation => 'Fake SVG with file contents' ); | |||||||||||||||||||||||
| 45 | 8 | ▶ | has svg_max_fetch_size => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_SVG_MAX_FETCH_SIZE}//65535}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$ENV{"MAIL_BIMI_SVG_MAX_FETCH_SIZE"} // 65535
MC/DC0%0/1
$ENV{"MAIL_BIMI_SVG_MAX_FETCH_SIZE"} // 65535
$ENV{"MAIL_BIMI_SVG_MAX_FETCH_SIZE"}
Truth table50%1/2
A
A= $ENV{"MAIL_BIMI_SVG_MAX_FETCH_SIZE"}
| |||||||||||||||||||||||||
| 46 | 29 | documentation => 'Maximum fetch size for SVG retrieval' ); | |||||||||||||||||||||||
| 47 | 24 | ▶ | has svg_max_size => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_SVG_MAX_SIZE}//32768}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$ENV{"MAIL_BIMI_SVG_MAX_SIZE"} // 32768
MC/DC0%0/1
$ENV{"MAIL_BIMI_SVG_MAX_SIZE"} // 32768
$ENV{"MAIL_BIMI_SVG_MAX_SIZE"}
Truth table50%1/2
A
A= $ENV{"MAIL_BIMI_SVG_MAX_SIZE"}
| |||||||||||||||||||||||||
| 48 | 29 | documentation => 'Maximum valid size for SVG' ); | |||||||||||||||||||||||
| 49 | 9 | ▶ | has svg_profile => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_SVG_PROFILE}//'SVG_1.2_PS'}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$ENV{"MAIL_BIMI_SVG_PROFILE"} // "SVG_1.2_PS"
MC/DC0%0/1
$ENV{"MAIL_BIMI_SVG_PROFILE"} // "SVG_1.2_PS"
$ENV{"MAIL_BIMI_SVG_PROFILE"}
Truth table50%1/2
A
A= $ENV{"MAIL_BIMI_SVG_PROFILE"}
| |||||||||||||||||||||||||
| 50 | 29 | documentation => 'Profile name to use for SVG validation' ); | |||||||||||||||||||||||
| 51 | 61 | ▶ | has verbose => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_VERBOSE}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||
| 52 | 29 | documentation => 'Be More Verbose' ); | |||||||||||||||||||||||
| 53 | 0 | ▶ | has vmc_from_file => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_VMC_FROM_FILE}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||
| 54 | 29 | documentation => 'Fake VMC with file contents' ); | |||||||||||||||||||||||
| 55 | 0 | ▶ | has vmc_no_check_alt => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_VMC_NO_CHECK_ALT}}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||
| 56 | 29 | documentation => 'Do not check the alt name of a VMC' ); | |||||||||||||||||||||||
| 57 | 0 | ▶ | has vmc_max_fetch_size => ( is => 'rw', lazy => 1, default => sub {return $ENV{MAIL_BIMI_VMC_MAX_FETCH_SIZE}//65535}, | ||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$ENV{"MAIL_BIMI_VMC_MAX_FETCH_SIZE"} // 65535
MC/DC0%0/1
$ENV{"MAIL_BIMI_VMC_MAX_FETCH_SIZE"} // 65535
$ENV{"MAIL_BIMI_VMC_MAX_FETCH_SIZE"}
Truth table0%0/2
A
A= $ENV{"MAIL_BIMI_VMC_MAX_FETCH_SIZE"}
| |||||||||||||||||||||||||
| 58 | 29 | documentation => 'Maximum fetch size for VMC retrieval' ); | |||||||||||||||||||||||
| 59 | |||||||||||||||||||||||||
| 60 | 29 | 1; | |||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||
| 62 | __END__ | ||||||||||||||||||||||||