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 |
|
Add an $address to the field. The addresses are organized in groups. If no group is specified, the default group is taken to store the address in. If no $address is specified, the option must be sufficient to create a Mail::Message::Field::Address from. See the %options of Mail::Message::Field::Address::new().
Option | Default |
---|---|
group |
|
Attributes are not supported for address fields.
Is is not possible to add attributes to address fields: it is not permitted by the RFCs.
Add a group of addresses to this field. A $group can be specified, which is a Mail::Message::Field::AddrGroup object, or one is created for you using the %options. The group is returned.
Option | Default |
---|---|
name |
|
Returns a list with all addresses defined in any group of addresses: all addresses which are specified on the line. The addresses are Mail::Message::Field::Address objects.
my @addr = $field->addresses;
Returns the group of addresses with the specified $name, or undef
if it does not exist. If $name is undef
, then the default groep
is returned.
Returns a list with all group names which are defined.
Returns all address groups which are defined in this field. Each element is a Mail::Message::Field::AddrGroup object.
Try to destilate address information from the STRING. Returned are
an address object and the left-over string. If no address was found,
the first returned value is undef
.
Try to get a valid domain representation from STRING. Returned are the
domain string as found (or undef
) and the rest of the string.