blib/lib/Mail/Mbox/MessageParser/Config.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Mail/Mbox/MessageParser/Perl.pm ↑ Summary
1 package Mail::Mbox::MessageParser::Config;
2  
3 51 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 51 ▶use vars qw( $VERSION %Config );
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 51 $VERSION = sprintf "%d.%02d%02d", q/0.1.2/ =~ /(\d+)/g;
8  
9 51 %Mail::Mbox::MessageParser::Config = (
10 'programs' => {
11 'bzip' => '/usr/bin/bzip2',
12 'bzip2' => '/usr/bin/bzip2',
13 'cat' => '/usr/bin/cat',
14 'diff' => '/usr/bin/diff',
15 'grep' => undef,
16 'gzip' => '/usr/bin/gzip',
17 'lzip' => undef,
18 'xz' => '/usr/bin/xz',
19 },
20  
21 'max_testchar_buffer_size' => 1048576,
22  
23 'read_chunk_size' => 20000,
24  
25 'from_pattern' => q/(?mx)^
26 (From\s
27 # Skip names, months, days
28 (?> [^:\n]+ )
29 # Match time
30 (?: :\d\d){1,2}
31 # Match time zone (EST), hour shift (+0500), and-or year
32 (?: \s+ (?: [A-Z]{2,6} | [+-]?\d{4} ) ){1,3}
33 # smail compatibility
34 (\sremote\sfrom\s.*)?
35 )/,
36  
37 );
38  
39 51 1;
40  
41 __END__
« blib/lib/Mail/Mbox/MessageParser/Perl.pm ↑ Summary