Net::Async::IMAP::Client - asynchronous IMAP client based on Protocol::IMAP::Client 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', on_authenticated => sub { warn "login was successful"; $loop->loop_stop; }, ); $imap->login( user => 'user@mailserver.com', pass => 'password', ); $loop->loop_forever;
See the Net::Async::IMAP::Client or Net::Async::IMAP::Server subclasses for more details.
Tom Molesworth <net-async-imap@entitymodel.com>
with thanks to Paul Evans <leonerd@leonerd.co.uk> for the IO::Async framework and improvements to the initial implementation of this module.
Copyright Tom Molesworth 2010-2013. 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.