line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 1995-2017 by [Mark Overmeer ]. |
2
|
|
|
|
|
|
|
# For other contributors see ChangeLog. |
3
|
|
|
|
|
|
|
# See the manual pages for details on the licensing terms. |
4
|
|
|
|
|
|
|
# Pod stripped from pm file by OODoc 2.02. |
5
|
1
|
|
|
1
|
|
10
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
70
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Mail::Mailer::rfc822; |
8
|
1
|
|
|
1
|
|
9
|
use vars '$VERSION'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
58
|
|
9
|
|
|
|
|
|
|
$VERSION = '2.19'; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
8
|
use base 'Mail::Mailer'; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
313
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub set_headers |
14
|
0
|
|
|
0
|
0
|
|
{ my ($self, $hdrs) = @_; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
local $\ = ""; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
foreach (keys %$hdrs) |
19
|
0
|
0
|
|
|
|
|
{ next unless m/^[A-Z]/; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
foreach my $h ($self->to_array($hdrs->{$_})) |
22
|
0
|
|
|
|
|
|
{ $h =~ s/\n+\Z//; |
23
|
0
|
|
|
|
|
|
print $self "$_: $h\n"; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
print $self "\n"; # terminate headers |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |