Tom Molesworth
and 1 contributors

NAME

Net::Async::IMAP::Server - asynchronous IMAP server based on Protocol::IMAP::Server and IO::Async::Protocol::Stream.

VERSION

version 0.004

SYNOPSIS

 use IO::Async::Loop;
 use Net::Async::IMAP;
 my $loop = IO::Async::Loop->new;
 my $imap = Net::Async::IMAP::Client->new(
        loop => $loop,
        host => 'mailserver.com',
        service => 'imap',
        user => 'user@mailserver.com',
        pass => 'password',
        on_authenticated => sub {
                warn "login was successful";
                $loop->loop_stop;
        },
 );
 $loop->loop_forever;

DESCRIPTION

See Protocol::IMAP::Server for more details on API.

METHODS

new

Instantiate a new object. Will add to the event loop if the loop parameter is passed.

on_read

Pass any new data into the protocol handler.

configure

Apply callbacks and other parameters, preparing state for event loop start.

start_idle_timer

stop_idle_timer

Disable the timer if it's running.

AUTHOR

Tom Molesworth <net-async-imap@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2010-2011. Licensed under the same terms as Perl itself.