Mail::Box 2.104

Perl Artistic License


Mail::Box 2.104

Mail::Box can manage a mailbox, a folder with messages.

INHERITANCE

Mail::Box
is a Mail::Reporter

Mail::Box is extended by
Mail::Box::Dir
Mail::Box::File
Mail::Box::Net


SYNOPSIS

use Mail::Box::Manager;
my $mgr= Mail::Box::Manager->new;
my $folder = $mgr->open(folder => $ENV{MAIL}, ...);
print $folder->name;

# Get the first message.
print $folder->message(0);

# Delete the third message
$folder->message(3)->delete;

# Get the number of messages in scalar context.
my $emails = $folder->messages;

# Iterate over the messages.
foreach ($folder->messages) {...} # all messages
foreach (@$folder) {...}# all messages

$folder->addMessage(Mail::Box::Message->new(...));
Tied-interface:
tie my(@inbox), 'Mail::Box::Tie::ARRAY', $inbox;

# Four times the same:
$inbox[3]->print;# tied
$folder->[3]->print;# overloaded folder
$folder->message(3)->print;# usual
print $folder->[3];# overloaded message

tie my(%inbox), 'Mail::Box::Tie::HASH', $inbox;

# Twice times the same
$inbox{$msgid}->print;# tied
$folder->messageId($msgid)->print;# usual


A Mail::Box::Manager creates Mail::Box objects. But you already knew, because you started with the Mail::Box-Overview manual page. That page is obligatory reading, sorry!

Mail::Box is the base class for accessing various types of mailboxes (folders) in a uniform manner. The various folder types vary on how they store their messages, but when some effort those differences could be hidden behind a general API. For example, some folders store many messages in one single file, where other store each message in a separate file withing the same directory.

No object in your program will be of type Mail::Box: it is only used as base class for the real folder types.

Product's homepage

Requirements:

· Perl

Download and use it now: Mail::Box 2.104 free download

Add a review

Tell us your experience with Mail::Box 2.104

Related programsOur Recommendations

Tenes Empanadas Graciela 0.11.2

Tenes Empanadas Graciela (TEG) is a turn-based strategy game based on Risk.TEG is a clone of "Plan

Download

KMathsTest 0.2

KMathsTest is a program who randomly generates maths questions for you to answer.Equations: don't

Download

FuncDesigner 0.51

FuncDesigner is an open source CAS (Computer Algebra System) written in Python. Below are

Download

FEBE 7.0.3.5

FEBE (Firefox Environment Backup Extension) is a Firefox extension that allows you to quickly and

Download

John Cena Theme 1

john cena theme for Google Chrome browser that fits most resolutions.About Google ChromeGoogle

Download

django-announcements 0.1.2

django-announcements is a Django plugin that offers site announcements.Some sites need the ability

Download

Alembic 0.4.0

Alembic is a new database migrations utility, written by the author of SQLAlchemy. A

Download

radmind 1.13.0

radmind is a suite of Unix command-line tools and a server designed to remotely administer the file

Download

mr.awsome 0.10

mr.awsome is a command-line utility to manage and control Amazon Webservice's EC2

Download

Mylene 20120910

Mylene is a command-line tool that can playback MPEG audio. It supports embedded MPEG audio

Download


Thumbnail of Mail::Box 2.104

Rating:

5 stars

Price: FREE

Publisher/Developer: Mark Overmeer

Release Date: Jun 26, 2012

View Program Details

Top Downloadslast week