line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2001-2023 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.03. |
5
|
|
|
|
|
|
|
# This code is part of distribution Mail-Message. Meta-POD processed with |
6
|
|
|
|
|
|
|
# OODoc into POD and HTML manual-pages. See README.md |
7
|
|
|
|
|
|
|
# Copyright Mark Overmeer. Licensed under the same terms as Perl itself. |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Mail::Message::Field::Unstructured; |
10
|
22
|
|
|
22
|
|
843
|
use vars '$VERSION'; |
|
22
|
|
|
|
|
57
|
|
|
22
|
|
|
|
|
1217
|
|
11
|
|
|
|
|
|
|
$VERSION = '3.013'; |
12
|
|
|
|
|
|
|
|
13
|
22
|
|
|
22
|
|
170
|
use base 'Mail::Message::Field::Full'; |
|
22
|
|
|
|
|
56
|
|
|
22
|
|
|
|
|
2662
|
|
14
|
|
|
|
|
|
|
|
15
|
22
|
|
|
22
|
|
161
|
use strict; |
|
22
|
|
|
|
|
57
|
|
|
22
|
|
|
|
|
523
|
|
16
|
22
|
|
|
22
|
|
116
|
use warnings; |
|
22
|
|
|
|
|
52
|
|
|
22
|
|
|
|
|
3584
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub init($) |
20
|
7
|
|
|
7
|
0
|
16
|
{ my ($self, $args) = @_; |
21
|
|
|
|
|
|
|
|
22
|
7
|
100
|
66
|
|
|
43
|
if($args->{body} && ($args->{encoding} || $args->{charset})) |
|
|
|
100
|
|
|
|
|
23
|
2
|
|
|
|
|
15
|
{ $args->{body} = $self->encode($args->{body}, %$args); |
24
|
|
|
|
|
|
|
} |
25
|
7
|
50
|
|
|
|
31
|
$self->SUPER::init($args) or return; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
$self->log(WARNING =>"Attributes are not supported for unstructured fields") |
28
|
7
|
50
|
|
|
|
25
|
if defined $args->{attributes}; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
$self->log(WARNING => "No extras for unstructured fields") |
31
|
7
|
50
|
|
|
|
19
|
if defined $args->{extra}; |
32
|
|
|
|
|
|
|
|
33
|
7
|
|
|
|
|
40
|
$self; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |