From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Net::Async::IMAP::Client - asynchronous IMAP client based on Protocol::IMAP::Client and IO::Async::Protocol::Stream.

VERSION

version 0.004

SYNOPSIS

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.