Net::Async::IMAP::Server - asynchronous IMAP server based on Protocol::IMAP::Server and IO::Async::Protocol::Stream.
version 0.004
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.
new
Instantiate a new object. Will add to the event loop if the loop parameter is passed.
loop
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.
Tom Molesworth <net-async-imap@entitymodel.com>
Copyright Tom Molesworth 2010-2011. Licensed under the same terms as Perl itself.
To install Net::Async::IMAP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::IMAP
CPAN shell
perl -MCPAN -e shell install Net::Async::IMAP
For more information on module installation, please visit the detailed CPAN module installation guide.