
Net::IMAP::Server::DefaultModel - Encapsulates per-connection information about the layout of IMAP folders.

This class represents an abstract model backend to the IMAP server; it it meant to be overridden by server implementations. Primarily, subclasses are expected to override "init" to set up their folder structure.

This class is created when the client has successfully authenticated to the server.
Called when the class is instantiated,
with no arguments.
Subclasses should override this methtod to inspect the "auth" object,
and determine what folders the user should have.
The primary purpose of this method is to set "root" to the top level of the mailbox tree.
The root is expected to contain a mailbox named INBOX.
Called when this model's connection closes, for any reason. By default, does nothing.
Utility method which splits a given PATH according to the mailbox seperator,
as determinded by the "seperator" in Net::IMAP::Server::Mailbox of the "root".
Given a PATH,
returns the Net::IMAP::Server::Mailbox for that path,
or undef if none matches.