128 |
$self->{option}->{ns_default_phuri} = $self->{ns}->{phname2uri}->{'rfc822'} |
$self->{option}->{ns_default_phuri} = $self->{ns}->{phname2uri}->{'rfc822'} |
129 |
unless $self->{option}->{ns_default_phuri}; |
unless $self->{option}->{ns_default_phuri}; |
130 |
|
|
131 |
|
## For text/rfc822-headers |
132 |
|
if (ref $options{entity_header}) { |
133 |
|
$self->{entity_header} = $options{entity_header}; |
134 |
|
delete $options{entity_header}; |
135 |
|
} |
136 |
my @new_fields = (); |
my @new_fields = (); |
137 |
for my $name (keys %options) { |
for my $name (keys %options) { |
138 |
unless (substr ($name, 0, 1) eq '-') { |
unless (substr ($name, 0, 1) eq '-') { |
383 |
} |
} |
384 |
} |
} |
385 |
|
|
386 |
|
## Defined for text/rfc822-headers |
387 |
|
sub entity_header ($;$) { |
388 |
|
my $self = shift; |
389 |
|
my $new_header = shift; |
390 |
|
if (ref $new_header) { |
391 |
|
$self->{header} = $new_header; |
392 |
|
} |
393 |
|
$self->{header}; |
394 |
|
} |
395 |
|
|
396 |
=head2 $self->field_name_list () |
=head2 $self->field_name_list () |
397 |
|
|
398 |
Returns list of all C<field-name>s. (Even if there are two |
Returns list of all C<field-name>s. (Even if there are two |