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");