GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  EMAIL::MIME::RFC2047::ADDRESSLIST (3)

.ds Aq ’

NAME

Email::MIME::RFC2047::AddressList - Handling of MIME encoded address lists

CONTENTS

VERSION

version 0.93

SYNOPSIS



 use Email::MIME::RFC2047::AddressList;

 my $address_list = Email::MIME::RFC2047::AddressList->parse($string);
 my @items = $address_list->items();

 my $address_list = Email::MIME::RFC2047::AddressList->new();
 $address_list->push($mailbox);
 $address_list->push($group);
 $email->header_set(To, $address_list->format());



DESCRIPTION

This module handles RFC 2822 ’address-lists’.

CLASS METHODS

    parse



 my $address_list = Email::MIME::RFC2047::AddressList->parse(
    $string, [$decoder]
 );



Parse a RFC 2822 ’address-list’. Returns a Email::MIME::RFC2047::AddressList object containing Email::MIME::RFC2047::Address items.

CONSTRUCTOR

    new



 my $address_list = Email::MIME::RFC2047::AddressList->new([@items]);



Creates a new Email::MIME::RFC2047::AddressList object, with optional items @items.

METHODS

    items



 my @items = $address_list->items();



Gets the items of the address list.

    push



 $address_list->address(@items);



Appends items to the address list.

    format



 my $string = $address_list->format([$encoder]);



Returns the formatted address list string for use in a message header.

$encoder is an optional Email::MIME::RFC2047::Encoder object used for encoding display names with non-ASCII characters.

AUTHOR

Nick Wellnhofer <wellnhofer@aevum.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Nick Wellnhofer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 EMAIL::MIME::RFC2047::ADDRESSLIST (3) 2015-10-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.