line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
28060
|
use strict; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
360
|
|
2
|
|
|
|
|
|
|
package Data::Message; |
3
|
|
|
|
|
|
|
{ |
4
|
|
|
|
|
|
|
$Data::Message::VERSION = '1.104'; |
5
|
|
|
|
|
|
|
} |
6
|
|
|
|
|
|
|
# ABSTRACT: parse and build header-and-body messages (kinda like email) |
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
4255
|
use Email::Simple 1.92; |
|
5
|
|
|
|
|
34930
|
|
|
5
|
|
|
|
|
158
|
|
9
|
5
|
|
|
5
|
|
46
|
use base qw[Email::Simple]; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
1101
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $private = \q[no peeking]; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
10
|
|
|
10
|
1
|
8114
|
my ($self, $message, %attrs) = @_; |
15
|
10
|
|
|
|
|
66
|
my $object = $self->SUPER::new($message); |
16
|
10
|
|
|
|
|
2443
|
$object->{"$private"} = \%attrs; |
17
|
10
|
|
|
|
|
32
|
return $object; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub header_set { |
21
|
6
|
|
|
6
|
1
|
3696
|
my $self = shift; |
22
|
6
|
|
|
|
|
19
|
local $Email::Simple::GROUCHY = $self->{"$private"}->{grouchy}; |
23
|
6
|
|
|
|
|
35
|
return $self->SUPER::header_set(@_); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |