Skip to main content

6.3.12 APPEND Command

Arguments:

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

Responses: OPTIONAL untagged response: LIST

Result:

  • OK - append completed
  • NO - append error: can't append to that mailbox
  • BAD - command unknown or arguments invalid

The APPEND command appends the literal argument as a new message to the end of the specified destination mailbox. If a flag list is specified, the flags SHOULD be set in the resulting message. If a date-time is specified, the internal date SHOULD be set in the resulting message.

On successful completion of an APPEND, the server returns an APPENDUID response code (see Section 7.1).

Example:

C: A003 APPEND saved-messages (\Seen) {326}
S: + Ready for literal data
C: Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
C: From: Fred Foobar <[email protected]>
C: Subject: afternoon meeting
...
S: A003 OK APPEND completed

Note: The APPEND command is not used for message delivery.