Skip to content

Instantly share code, notes, and snippets.

@ben221199
Last active February 19, 2026 19:20
Show Gist options
  • Select an option

  • Save ben221199/43b2d70f428d65087ca3f832788889c9 to your computer and use it in GitHub Desktop.

Select an option

Save ben221199/43b2d70f428d65087ca3f832788889c9 to your computer and use it in GitHub Desktop.
IMAP

Commands

CAPABILITY

Since: RFC 1730 (IMAP4)

NOOP

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

STARTTLS

Since: RFC 3501 (IMAP4rev1)

AUTHENTICATE

Parameters:

  • authentication mechanism name

Since: RFC 1730 (IMAP4)

LOGIN

Parameters:

  • user/user name
  • password

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

LOGOUT

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

SELECT

Parameters:

  • mailbox/mailbox name

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

ENABLE

Parameters:

  • capability names

Since: RFC 9051 (IMAP4rev2)

BBOARD

Parameters:

  • bulletin_board/bboard

Since: RFC 1176 (IMAP2)

In IMAP2bis: Yes

Updated: RFC 1732 (IMAP4 Compatibility with IMAP2 and IMAP2bis: Removal of BBOARD)

Removed: RFC 1730 (IMAP4)

FIND BBOARDS|MAILBOXES

Parameters:

  • pattern

Since: RFC 1176 (IMAP2)

In IMAP2bis: Yes

Updated: RFC 1732 (IMAP4 Compatibility with IMAP2 and IMAP2bis: Removal of BBOARDS)

Obsoleted: RFC 1730 (IMAP4)

FIND ALL.MAILBOXES|ALL.BBOARDS

Parameters:

  • pattern

In IMAP2bis: Yes

Updated: RFC 1732 (IMAP4 Compatibility with IMAP2 and IMAP2bis: Removal of ALL.BBOARDS)

Obsoleted: RFC 1730 (IMAP4)

EXAMINE

Parameters:

  • mailbox name

In IMAP2bis: Yes

Since: RFC 1730 (IMAP4)

CREATE

Parameters:

  • mailbox name

In IMAP2bis: Yes

Since: RFC 1730 (IMAP4)

DELETE

Parameters:

  • mailbox name

In IMAP2bis: Yes

Since: RFC 1730 (IMAP4)

RENAME

Parameters:

  • existing mailbox name
  • new mailbox name

In IMAP2bis: Yes

Since: RFC 1730 (IMAP4)

SUBSCRIBE MAILBOX|BBOARD

Parameters:

  • mailbox

In IMAP2bis: Yes

Updated: RFC 1732 (IMAP4 Compatibility with IMAP2 and IMAP2bis: Removal of BBOARD)

Obsoleted: RFC 1730 (IMAP4)

SUBSCRIBE

Parameters:

  • mailbox

Since: RFC 1730 (IMAP4)

UNSUBSCRIBE MAILBOX|BBOARD

Parameters:

  • mailbox

In IMAP2bis: Yes

Updated: RFC 1732 (IMAP4 Compatibility with IMAP2 and IMAP2bis: Removal of BBOARD)

Obsoleted: RFC 1730 (IMAP4)

UNSUBSCRIBE

Parameters:

  • mailbox name

Since: RFC 1730 (IMAP4)

LIST

Parameters:

  • reference name
  • mailbox name with possible wildcards

Since: RFC 1730 (IMAP4)

NAMESPACE

Since: RFC 9051 (IMAP4rev2)

LSUB

Parameters:

  • reference name
  • mailbox name with possible wildcards

Since: RFC 1730 (IMAP4)

Obsolete: RFC 9051 (IMAP4rev2)

STATUS

Parameters:

  • mailbox name
  • status data item names

Since: RFC 2060 (IMAP4rev1)

APPEND

Parameters:

  • mailbox name
  • optional flag parenthesized list
  • optional date/time string
  • message literal

In IMAP2bis: Yes

Since: RFC 1730 (IMAP4)

IDLE

Since: RFC 9051 (IMAP4rev2)

CHECK

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

CLOSE

Since: RFC 1730 (IMAP4)

UNSELECT

Since: RFC 9051 (IMAP4rev2)

EXPUNGE

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

COPY

Parameters:

  • sequence/message set
  • mailbox/mailbox name

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

MOVE

Parameters:

  • sequence set

Since: RFC 9051 (IMAP4rev2)

FETCH

Parameters:

  • sequence/message set
  • data/message data item names/message data item names or macro

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

PARTIAL

Parameters:

  • message sequence number
  • message data item name
  • position of first octet
  • number of octets

In IMAP2bis: Yes

Since: RFC 1730 (IMAP4)

Obsoleted: RFC 2060 (IMAP4rev1)

STORE

Parameters:

  • sequence/message set/sequence set
  • data/message data item name
  • value/value for message data item

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

SEARCH

Parameters:

  • optional character set specification/OPTIONAL [CHARSET] specification (Since RFC 1730: IMAP4)
  • search_program/criteria/searching criteria (one or more)

Since: RFC 1064 (IMAP2)

In IMAP2bis: Yes

UID

Parameters:

  • command name
  • command arguments

In IMAP2bis: Yes

Since: RFC 1730 (IMAP4)

READONLY

In IMAP3: Yes

READWRITE

In IMAP3: Yes

SELECT.VERSION

Parameters:

  • (major_version minor_version)

In IMAP3: Yes

SELECT.FEATURES

Parameters:

  • features

In IMAP3: Yes

SUPPORTED.VERSIONS

In IMAP3: Yes

FLAGS

In IMAP3: Yes

SET.FLAGS

In IMAP3: Yes

RFCs

RFC Version Date
RFC 1064 IMAP2 July 1988
RFC 1176 IMAP2 August 1990
RFC 1203 IMAP3 February 1991
RFC 1730 IMAP4 December 1994
RFC 2060 IMAP4rev1 December 1996
RFC 3501 IMAP4rev1 March 2003
RFC 9051 IMAP4rev2 August 2021

RFC 1732 and RFC 2061 is a guideline to make a IMAP4 clients and servers compatible with IMAP2 (and IMAP2bis).

IMAP2bis isn't a RFC, but can be found at: https://datatracker.ietf.org/doc/html/draft-ietf-imap-imap2bis-02.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment