1Mail::Field::AddrList(3U)ser Contributed Perl DocumentatiMoanil::Field::AddrList(3)
2
3
4

NAME

6       Mail::Field::AddrList - object representation of e-mail address lists
7

DESCRIPTION

9       Don't use this class directly! Instead ask Mail::Field for new
10       instances based on the field name!
11

SYNOPSIS

13         use Mail::Field::AddrList;
14
15         $to = Mail::Field->new('To');
16         $from = Mail::Field->new('From', 'poe@daimi.aau.dk (Peter Orbaek)');
17
18         $from->create('foo@bar.com' => 'Mr. Foo', poe => 'Peter');
19         $from->parse('foo@bar.com (Mr Foo), Peter Orbaek <poe>');
20
21         # make a RFC822 header string
22         print $from->stringify(),"\n";
23
24         # extract e-mail addresses and names
25         @addresses = $from->addresses();
26         @names = $from->names();
27
28         # adjoin a new address to the list
29         $from->set_address('foo@bar.com', 'Mr. Foo');
30

NOTES

32       Defines parsing and formatting according to RFC822, of the following
33       fields: To, From, Cc, Reply-To and Sender.
34

AUTHOR

36       Peter Orbaek <poe@cit.dk> 26-Feb-97 Modified by Graham Barr
37       <gbarr@pobox.com> Maintained by Mark Overmeer <mailtools@overmeer.net>
38
39       Copyright (c) 2002-2003 Mark Overmeer. All rights reserved. This pro‐
40       gram is free software; you can redistribute it and/or modify it under
41       the same terms as Perl itself.
42
43
44
45perl v5.8.8                       2007-05-11          Mail::Field::AddrList(3)
Impressum