NAME

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

VERSION

version 0.004

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

Sets or retrieves the current state, in text format.

state_id

Sets or returns the state, in numeric format.

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.

INHERITED METHODS

Mixin::Event::Dispatch

add_handler_for_event, clear_event_handlers, event_handlers, invoke_event, subscribe_to_event, unsubscribe_from_event

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.