|RFC 2060 http://tools.ietf.org/html/rfc2060
RFC 2061 http://tools.ietf.org/html/rfc2061
The Internet Message Access Protocol, Version 4rev1 (IMAP4)
allows a client to access and manipulate electronic mail messages on a server.
IMAP4 permits manipulation of remote message folders, called mailboxes, in a way
that is functionally equivalent to local mailboxes. IMAP4 also provides the
capability for an offline client to resynchronize with the server.
IMAP4 includes operations for creating, deleting, and
renaming mailboxes; checking for new messages; permanently removing messages;
setting and clearing flags; parsing; searching; and selective fetching of
message attributes, texts, and portions thereof. Messages in IMAP4 are accessed
by the use of numbers. These numbers are either message sequence numbers or