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