Copyright (C) 2000-2012 |
Manpages Mail::Field::AddrListSection: User Contributed Perl Documentation (3)Updated: 2002-03-23 Index Return to Main Contents NAMEMail::Field::AddrList - object representation of e-mail address listsDESCRIPTIONDon't use this class directly! Instead ask Mail::Field for new instances based on the field name!SYNOPSISuse Mail::Field::AddrList; $to = Mail::Field->new('To'); $from = Mail::Field->new('From', 'poe@daimi.aau.dk (Peter Orbaek)'); $from->create('foo@bar.com' => 'Mr. Foo', poe => 'Peter'); $from->parse('foo@bar.com (Mr Foo), Peter Orbaek <poe>'); # make a RFC822 header string print $from->stringify(),"\n"; # extract e-mail addresses and names @addresses = $from->addresses(); @names = $from->names(); # adjoin a new address to the list $from->set_address('foo@bar.com', 'Mr. Foo'); NOTESDefines parsing and formatting according to RFC822, of the following fields: To, From, Cc, Reply-To and Sender.AUTHORPeter Orbaek <poe@cit.dk> 26-Feb-97 Modified by Graham Barr <gbarr@pobox.com> Maintained by Mark Overmeer <mailtools@overmeer.net>
IndexThis document was created by man2html, using the manual pages. Time: 13:06:45 GMT, March 29, 2024 |