See METHODS in Mail::Reporter
Option | Defined in | Default |
---|---|---|
attributes | Mail::Message::Field::Structured | <ignored> |
charset | Mail::Message::Field::Full | undef |
datum | Mail::Message::Field::Structured |
|
encoding | Mail::Message::Field::Full |
|
force | Mail::Message::Field::Full | false |
language | Mail::Message::Field::Full | undef |
log | Mail::Reporter |
|
trace | Mail::Reporter |
|
my $mmfu = 'Mail::Message::Field::URIs; my $f = $mmfu->new('List-Post' => 'mailto:x@y.com'); my $f = $mmfu->new('List-Post' => '<mailto:x@y.com>'); my $f = $mmfu->new('List-Post: <mailto:x@y.com>'); my $f = $mmfu->new('List-Post' => [ $uri, 'http://x.org' ]);
Attributes are not supported for URI fields.
Is is not possible to add attributes to URI fields: it is not permitted by the RFCs.
Add an $uri to the field. The $uri can be specified as URI object or as string which will be turned into an $uri object. The added $uri is returned.
my $f = Mail::Message::Field::URI->new('List-Post'); my $uri = URI->new("http://x.org"); $f->addURI($uri); $f->addURI("http://y.org"); # simpler $f->addURI("//y.org", "http");
See Parsing in Mail::Message::Field::Full