What Is IMAP (Internet Message Access Protocol)

Q

What is IMAP (Internet Message Access Protocol)? Can I use it to download emails?

✍: FYIcenter.com

A

IMAP (Internet Message Access Protocol) is network protocol that allows you to access electronic mail messages stored on a (possibly shared) mail server. In other words, it permits a "client" email program to access remote message stores as if they were local.

The main purpose of IMAP is to allow you to download your emails from your email provider servers, like Gmail, Yahoo, or your office email servers. IMAP can not be used to send out emails.

IMAP is defined by "RFC 2060 - INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1" in 1996 as below:

The Internet Message Access Protocol, Version 4rev1 (IMAP4rev1) allows a client to access and manipulate electronic mail messages on a server. IMAP4rev1 permits manipulation of remote message folders, called "mailboxes", in a way that is functionally equivalent to local mailboxes. IMAP4rev1 also provides the capability for an offline client to resynchronize with the server (see also [IMAP-DISC]).

IMAP4rev1 includes operations for creating, deleting, and renaming mailboxes; checking for new messages; permanently removing messages; setting and clearing flags; [RFC-822] and [MIME-IMB] parsing; searching; and selective fetching of message attributes, texts, and portions thereof. Messages in IMAP4rev1 are accessed by the use of numbers. These numbers are either message sequence numbers or unique identifiers.

IMAP4rev1 supports a single server. A mechanism for accessing configuration information to support multiple IMAP4rev1 servers is discussed in [ACAP].

IMAP4rev1 does not specify a means of posting mail; this function is handled by a mail transfer protocol such as [SMTP].

IMAP4rev1 is designed to be upwards compatible from the [IMAP2] and unpublished IMAP2bis protocols. In the course of the evolution of IMAP4rev1, some aspects in the earlier protocol have become obsolete. Obsolete commands, responses, and data formats which an IMAP4rev1 implementation may encounter when used with an earlier implementation are described in [IMAP-OBSOLETE].

Other compatibility issues with IMAP2bis, the most common variant of the earlier protocol, are discussed in [IMAP-COMPAT]. A full discussion of compatibility issues with rare (and presumed extinct) variants of [IMAP2] is in [IMAP-HISTORICAL]; this document is primarily of historical interest.

 

What Is POP3 (Post Office Protocol version 3)

What Is SMTP (Simple Mail Transfer Protocol)

Download and Install JavaMail Library

⇑⇑ FAQ for JavaMail

2015-12-23, 2463🔥, 0💬