line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
12
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
86
|
|
2
|
3
|
|
|
3
|
|
13
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
145
|
|
3
|
|
|
|
|
|
|
package Email::Folder::Reader; |
4
|
|
|
|
|
|
|
{ |
5
|
|
|
|
|
|
|
$Email::Folder::Reader::VERSION = '0.860'; |
6
|
|
|
|
|
|
|
} |
7
|
|
|
|
|
|
|
# ABSTRACT: reads raw RFC822 mails from a box |
8
|
|
|
|
|
|
|
|
9
|
3
|
|
|
3
|
|
12
|
use Carp; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
460
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
11
|
|
|
11
|
1
|
14
|
my $class = shift; |
14
|
11
|
|
33
|
|
|
31
|
my $file = shift || croak "You must pass a filename"; |
15
|
11
|
|
|
|
|
13
|
bless { eval { $class->defaults }, |
|
11
|
|
|
|
|
62
|
|
16
|
|
|
|
|
|
|
@_, |
17
|
|
|
|
|
|
|
_file => $file }, $class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
0
|
1
|
|
sub next_message { |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub messages { |
26
|
9
|
|
|
9
|
1
|
14
|
my $self = shift; |
27
|
|
|
|
|
|
|
|
28
|
9
|
|
|
|
|
10
|
my @messages; |
29
|
9
|
|
|
|
|
38
|
while (my $message = $self->next_message) { |
30
|
52
|
|
|
|
|
186
|
push @messages, $message; |
31
|
|
|
|
|
|
|
} |
32
|
9
|
|
|
|
|
41
|
return @messages; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |