NAME

MKDoc::Forum::IMAP::Connection - Connection to the IMAP server

API

$class->new (%args);

Creates a new MKDoc::Forum::IMAP::Connection object.

MKDoc::Init::IMAP will invoke this method and set it in $::MKD_IMAP, thus if you are using the MKDoc::Core framework you can access this object through $::MKD_IMAP.

$self->connect();

Connects to the IMAP server if necessary.

$self->mbox();

Returns the mailbox currently used.

$self->set_mbox ($mbox);

Sets and selects the mailbox currently used to $mbox.

$self->mbox_create ($mbox);

Attempts to create $mbox. Does nothing if $mbox already exists.

$self->message_body ($uid);

Returns the message body for the message with uid $uid.

$self->DESTROY();

Calls $self->disconnect().