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

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;

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

newInstantiate a new object. Will add to the event loop if the loop parameter is passed.
on_readPass any new data into the protocol handler.
configureApply callbacks and other parameters, preparing state for event loop start.
start_idle_timerstop_idle_timerDisable the timer if it's running.

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

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