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
|
|
|
|
|
|
|
package Mail::Field::Generic; |
6
|
1
|
|
|
1
|
|
5
|
use vars '$VERSION'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
7
|
|
|
|
|
|
|
$VERSION = '2.19'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
5
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
11
|
1
|
|
|
1
|
|
5
|
use base 'Mail::Field'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
223
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub create |
15
|
0
|
|
|
0
|
1
|
|
{ my ($self, %arg) = @_; |
16
|
0
|
|
|
|
|
|
$self->{Text} = delete $arg{Text}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
0
|
|
|
|
|
croak "Unknown options " . join(",", keys %arg) |
19
|
|
|
|
|
|
|
if %arg; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
$self; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub parse |
26
|
0
|
|
|
0
|
1
|
|
{ my $self = shift; |
27
|
0
|
|
0
|
|
|
|
$self->{Text} = shift || ""; |
28
|
0
|
|
|
|
|
|
$self; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
0
|
1
|
|
sub stringify { shift->{Text} } |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |