The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Email::MIME::RFC2047::Group - Handling of MIME encoded mailbox groups

SYNOPSIS

 use Email::MIME::RFC2047::Group;

 my $group = Email::MIME::RFC2047::Group->new(
    name => $name,
    mailbox_list => $mailbox_list,
 );
 $email->header_set('To', $group->format());

DESCRIPTION

This module handles RFC 2822 'groups'.

CONSTRUCTOR

new

 my $group = Email::MIME::RFC2047::Group->new(
    name => $name,
    mailbox_list => $mailbox_list,
 );

Creates a new Email::MIME::RFC2047::Group object, optionally with a display name $name and an mailbox list $mailbox_list.

METHODS

name

 my $name = $group->name();
 $group->name($new_name);

Gets or sets the display name of the group.

mailbox_list

 my $mailbox_list = $group->mailbox_list();
 $group->mailbox_list($new_mailbox_list);

Gets or sets the mailbox list of the group.

format

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

Returns the formatted 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

Copyright (C) Nick Wellnhofer, 2009

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.