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
Email::MIME::RFC2047::Mailbox(3) User Contributed Perl Documentation Email::MIME::RFC2047::Mailbox(3)

Email::MIME::RFC2047::Mailbox - MIME encoded mailboxes

version 0.97

    use Email::MIME::RFC2047::Mailbox;

    my $mailbox = Email::MIME::RFC2047::Mailbox->parse($string);
    print $mailbox->name,    "\n";
    print $mailbox->address, "\n";

    my $mailbox = Email::MIME::RFC2047::Mailbox->new(
        name    => $name,
        address => $address,
    );
    $email->header_set('To', $mailbox->format());

This module handles RFC 2822 "mailbox"es.

    my $mailbox = Email::MIME::RFC2047::Mailbox->parse($string, [$decoder])

Parse a RFC 2822 "mailbox". Returns a Email::MIME::RFC2047::Mailbox object. $decoder is an optional Email::MIME::RFC2047::Decoder. If it isn't provided, a new temporary decoder is used.

    my $mailbox = Email::MIME::RFC2047::Mailbox->new(
        name    => $name,
        address => $address,
    );

Creates a new Email::MIME::RFC2047::Mailbox object, optionally with a display name $name and an email address $address.

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

Gets or sets the display name of the mailbox.

    my $address = $mailbox->address;
    $mailbox->address($new_address);

Gets or sets the email address of the mailbox.

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

Returns the formatted mailbox 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. If it isn't provided, a default UTF-8 encoder will be used.

Nick Wellnhofer <wellnhofer@aevum.de>

This software is copyright (c) 2017 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.

2017-07-31 perl v5.32.1

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

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