Документ взят из кэша поисковой машины. Адрес оригинального документа : http://mirror.msu.net/pub/rfc-editor/rfc-ed-all/pdfrfc/rfc2062.txt.pdf
Дата изменения: Wed Mar 27 23:21:56 2002
Дата индексирования: Tue Oct 2 18:53:35 2012
Кодировка:
Network Working Group Request for Comments: 2062 Category: Informational

M. Crispin University of Washington December 1996

Internet Message Access Protocol - Obsolete Syntax Status of this Memo This memo provides information for the Internet community. This memo does not specify an Internet standard of any kind. Distribution of this memo is unlimited. Abstract This document describes obsolete syntax which may be encountered by IMAP4 implementations which deal with older versions of the Internet Mail Access Protocol. IMAP4 implementations MAY implement this syntax in order to maximize interoperability with older implementations. This document repeats information from earlier documents, most notably RFC 1176 and RFC 1730. Obsolete Commands and Fetch Data Items The following commands are OBSOLETE. It is NOT any of these commands or fetch data items in new implementations. These commands are documented of implementors who may wish to support them for old client implementations. required to support server here for the benefit compatibility with

The section headings of these commands are intended to correspond with where they would be located in the main document if they were not obsoleted. 6.3.OBS.1. Arguments: Data: Result: FIND ALL.MAILBOXES Command mailbox name with possible wildcards untagged responses: MAILBOX OK - find completed NO - find failure: can't list that name BAD - command unknown or arguments invalid

Crispin

Informational

[Page 1]


RFC 2062

IMAP4 Obsolete

December 1996

The FIND ALL.MAILBOXES command returns a subset of names from the complete set of all names available to the user. It returns zero or more untagged MAILBOX replies. The mailbox argument to FIND ALL.MAILBOXES is similar to that for LIST with an empty reference, except that the characters "%" and "?" match a single character. Example: C: S: S: S: A002 FIND ALL.MAILBOXES * * MAILBOX blurdybloop * MAILBOX INBOX A002 OK FIND ALL.MAILBOXES completed

6.3.OBS.2. Arguments: Data: Result:

FIND MAILBOXES Command mailbox name with possible wildcards untagged responses: MAILBOX OK - find completed NO - find failure: can't list that name BAD - command unknown or arguments invalid

The FIND MAILBOXES command returns a subset of names from the set of names that the user has declared as being "active" or "subscribed". It returns zero or more untagged MAILBOX replies. The mailbox argument to FIND MAILBOXES is similar to that for LSUB with an empty reference, except that the characters "%" and "?" match a single character. Example: C: S: S: S: A002 FIND MAILBOXES * * MAILBOX blurdybloop * MAILBOX INBOX A002 OK FIND MAILBOXES completed

6.3.OBS.3. Arguments: Data: Result:

SUBSCRIBE MAILBOX Command mailbox name no specific data for this command OK - subscribe completed NO - subscribe failure: can't subscribe to that name BAD - command unknown or arguments invalid

The SUBSCRIBE MAILBOX command is identical in effect to the SUBSCRIBE command. A server which implements this command must be able to distinguish between a SUBSCRIBE MAILBOX command and a SUBSCRIBE command with a mailbox name argument of "MAILBOX".

Crispin

Informational

[Page 2]


RFC 2062

IMAP4 Obsolete

December 1996

Example:

C: A002 SUBSCRIBE MAILBOX #news.comp.mail.mime S: A002 OK SUBSCRIBE MAILBOX to #news.comp.mail.mime completed C: A003 SUBSCRIBE MAILBOX S: A003 OK SUBSCRIBE to MAILBOX completed

6.3.OBS.4. Arguments: Data: Result:

UNSUBSCRIBE MAILBOX Command mailbox name no specific data for this command OK - unsubscribe completed NO - unsubscribe failure: can't unsubscribe that name BAD - command unknown or arguments invalid command is identical in effect to the server which implements this command must between a UNSUBSCRIBE MAILBOX command and with a mailbox name argument of "MAILBOX".

The UNSUBSCRIBE MAILBOX UNSUBSCRIBE command. A be able to distinguish an UNSUBSCRIBE command Example:

C: A002 UNSUBSCRIBE MAILBOX #news.comp.mail.mime S: A002 OK UNSUBSCRIBE MAILBOX from #news.comp.mail.mime completed C: A003 UNSUBSCRIBE MAILBOX S: A003 OK UNSUBSCRIBE from MAILBOX completed PARTIAL Command message sequence number message data item name position of first octet number of octets untagged responses: FETCH OK - partial completed NO - partial error: can't fetch that data BAD - command unknown or arguments invalid

6.4.OBS.1 Arguments:

Data: Result:

The PARTIAL command is equivalent to the associated FETCH command, with the added functionality that only the specified number of octets, beginning at the specified starting octet, are returned. Only a single message can be fetched at a time. The first octet of a message, and hence the minimum for the starting octet, is octet 1.

Crispin

Informational

[Page 3]


RFC 2062

IMAP4 Obsolete

December 1996

The following FETCH items are valid data for PARTIAL: RFC822, RFC822.HEADER, RFC822.TEXT, BODY[
], as well as any .PEEK forms of these. Any partial fetch that attempts to read beyond the end of the text is truncated as appropriate. If the starting octet is beyond the end of the text, an empty string is returned. The data are returned with the FETCH response. There is no indication of the range of the partial data in this response. It is not possible to stream multiple PARTIAL commands of the same data item without processing and synchronizing at each step, since streamed commands may be executed out of order. There is no requirement that partial fetches follow any sequence. For example, if a partial fetch of octets 1 through 10000 breaks in an awkward place for BASE64 decoding, it is permitted to continue with a partial fetch of 9987 through 19987, etc. The handling of the \Seen flag is the same as in the associated FETCH command. Example: C: S: S: S: S: S: A005 PARTIAL 4 RFC822 1 1024 * 1 FETCH (RFC822 {1024} Return-Path: ... ......... FLAGS (\Seen)) A005 OK PARTIAL completed

6.4.5.OBS.1

Obsolete FETCH Data Items

The following FETCH data items are obsolete: BODY[<...>0] A body part number of 0 the message. BODY[0] is BODY[HEADER], differing resulting untagged FETCH returned). is the [RFC-822] header of functionally equivalent to in the syntax of the data (BODY[0] is

RFC822.HEADER.LINES Functionally equivalent to BODY.PEEK[HEADER.LINES ], differing in the syntax of the resulting untagged FETCH data (RFC822.HEADER is returned).

Crispin

Informational

[Page 4]


RFC 2062

IMAP4 Obsolete

December 1996

RFC822.HEADER.LINES.NOT Functionally equivalent to BODY.PEEK[HEADER.LINES.NOT ], differing in the syntax of the resulting untagged FETCH data (RFC822.HEADER is returned). RFC822.PEEK Functionally equivalent to BODY.PEEK[], except for the syntax of the resulting untagged FETCH data (RFC822 is returned).

RFC822.TEXT.PEEK Functionally equivalent to BODY.PEEK[TEXT], except for the syntax of the resulting untagged FETCH data (RFC822.TEXT is returned). Obsolete Responses The following responses are OBSOLETE. Except as noted below, these responses MUST NOT be transmitted by new server implementations. Client implementations SHOULD accept these responses. The section headings of these responses are intended to correspond with where they would be located in the main document if they were not obsoleted. 7.2.OBS.1. Data: MAILBOX Response name

The MAILBOX response MUST NOT be transmitted by server implementations except in response to the obsolete FIND MAILBOXES and FIND ALL.MAILBOXES commands. Client implementations that do not use these commands MAY ignore this response. It is documented here for the benefit of implementors who may wish to support it for compatibility with old client implementations. This response occurs as a result of the FIND MAILBOXES and FIND ALL.MAILBOXES commands. It returns a single name that matches the FIND specification. There are no attributes or hierarchy delimiter. Example: S: * MAILBOX blurdybloop

Crispin

Informational

[Page 5]


RFC 2062

IMAP4 Obsolete

December 1996

7.3.OBS.1. Data:

COPY Response none MUST NOT be transmitted by new server Client implementations MUST ignore the COPY documented here for the benefit of client may encounter this response from old server

The COPY response implementations. response. It is implementors who implementations.

In some experimental versions of this protocol, this response was returned in response to a COPY command to indicate on a per-message basis that the message was copied successfully. Example: 7.3.OBS.2. Data: S: * 44 COPY STORE Response message data

The STORE response MUST NOT be transmitted by new server implementations. Client implementations MUST treat the STORE response as equivalent to the FETCH response. It is documented here for the benefit of client implementors who may encounter this response from old server implementations. In some experimental versions of this protocol, this response was returned instead of FETCH in response to a STORE command to report the new value of the flags. Example: S: * 69 STORE (FLAGS (\Deleted))

Formal Syntax of Obsolete Commands and Responses Each obsolete syntax rule that is suffixed with "_old" is added to the corresponding name in the formal syntax. For example, command_auth_old adds the FIND command to command_auth. command_auth_old ::= find command_select_old ::= partial date_year_old ::= 2digit ;; (year - 1900) ::= <"> date_day_fixed "-" date_month "-" date_year SPACE time "-" zone_name <">

date_time_old

Crispin

Informational

[Page 6]


RFC 2062

IMAP4 Obsolete

December 1996

find

::= "FIND" SPACE ["ALL."] "MAILBOXES" SPACE list_mailbox ::= "RFC822.HEADER.LINES" [".NOT"] SPACE header_list / fetch_text_old ::= "BODY" [".PEEK"] section_old / "RFC822" [".HEADER" / ".TEXT" [".PEEK"]] ::= "COPY" / ("STORE" SPACE msg_att) ::= "PARTIAL" SPACE nz_number SPACE fetch_text_old SPACE number SPACE number ::= "[" (number ["." number]) "]" ::= "SUBSCRIBE" SPACE "MAILBOX" SPACE mailbox

fetch_att_old

fetch_text_old

msg_data_old partial

section_old subscribe_old

unsubscribe_old ::= "UNSUBSCRIBE" SPACE "MAILBOX" SPACE mailbox zone_name ::= "UT" "AST" "EST" "CST" "MST" "PST" "YST" "HST" "BST" "A" / "G" / "N" / "T" / / "GMT" / / "EDT" / / "CDT" / / "MDT" / / "PDT" / / "YDT" / / "HDT" / / "BDT" / / "B" / "C" "H" / "I" "O" / "P" "U" / "V" "Z" / ;; ;; ;; ;; ;; ;; ;; ;; ;; "E" / "F" / ;; "L" / "M" / ;; "R" / "S" / ;; "X" / "Y" ;; +0000 -0400 -0500 -0600 -0700 -0800 -0900 -1000 -1100 +1 to +7 to -1 to -7 to

/ / / /

"D" "K" "Q" "W"

/ / / /

+6 +12 -6 -12

Security Considerations Security issues are not discussed in this memo.

Crispin

Informational

[Page 7]


RFC 2062

IMAP4 Obsolete

December 1996

Author's Address Mark R. Crispin Networks and Distributed Computing University of Washington 4545 15th Aveneue NE Seattle, WA 98105-4527 Phone: (206) 543-5762 EMail: MRC@CAC.Washington.EDU

Crispin

Informational

[Page 8]