NAME

Protocol::IMAP - support for the Internet Message Access Protocol as defined in RFC3501.

VERSION

version 0.003

SYNOPSIS

use Protocol::IMAP::Server;
use Protocol::IMAP::Client;

DESCRIPTION

Base class for Protocol::IMAP::Server and Protocol::IMAP::Client implementations.

METHODS

debug

Debug log message. Only displayed if the debug flag was passed to configure.

state

state_id

Returns the state matching the given ID.

in_state

Returns true if we're in the given state.

write

Raise an error if we call ->write at top level, just in case someone's trying to use this directly.

_capture_weakself

Helper method to avoid capturing $self in closures, using the same approach and method name as in IO::Async.

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

with thanks to Paul Evans <leonerd@leonerd.co.uk> for the IO::Async framework, which provides the foundation for Net::Async::IMAP.

LICENSE

Licensed under the same terms as Perl itself.