Tom Molesworth > Net-Async-IMAP-0.004 > Net::Async::IMAP::Client

Download:
Net-Async-IMAP-0.004.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.004   Source  

NAME ^

Net::Async::IMAP::Client - asynchronous IMAP client based on Protocol::IMAP::Client 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',
        on_authenticated => sub {
                warn "login was successful";
                $loop->loop_stop;
        },
 );
 $imap->login(
        user => 'user@mailserver.com',
        pass => 'password',
 );
 $loop->loop_forever;

DESCRIPTION ^

See the Net::Async::IMAP::Client or Net::Async::IMAP::Server subclasses for more details.

AUTHOR ^

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.

LICENSE ^

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

syntax highlighting: