NAME
Mail::Address - Parse mail addresses
DESCRIPTION
Parse mailcap files as specified in RFC 822 - Standard for ARPA Internet Text Messages.
CONSTRUCTORS
new($phrase, $address, [ $comment])
Mail::Address->new("Perl5 Porters", "perl5-porters@africa.nicoh.com");
Create a new object which represent an address with the elements given. In a message these 3 elements would be seen like:
$phrase <$address> ($comment)
$address ($comment)
parse($line)
Mail::Address->parse($line);
Parse the given line a return a list of extracted objects. The line would
normally be one taken from a To,Cc or Bcc line in a message
METHODS
phrase()
address()
comment()
These methods each return one part of the object
format()
Return a string representing the address in a suitable form to be placed on a To,Cc or Bcc line of a message
name()
Using the information contained within the object attempt to identify what the perons or groups name is
host()
Return the address excluding the user id and '@'
host()
Return the address excluding the '@' and the mail domain
path()
Unimplemented yet but shoud return the UUCP path for the message
canon()
Unimplemented yet but shoud return the UUCP canon for the message