⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fetchcommand.java

📁 java 开发的邮件服务器平台。支持以下协议。 协议可以修改为自己的专门标识
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
                     first desired octet, a period, the maximum number                     of octets desired, and a close angle bracket (">")                     to the part specifier.  If the starting octet is                     beyond the end of the text, an empty string is                     returned.                     Any partial fetch that attempts to read beyond the                     end of the text is truncated as appropriate.  A                     partial fetch that starts at octet 0 is returned as                     a partial fetch, even if this truncation happened.                          Note: this means that BODY[]<0.2048> of a                          1500-octet message will return BODY[]<0>                          with a literal of size 1500, not BODY[].                          Note: a substring fetch of a                          HEADER.FIELDS or HEADER.FIELDS.NOT part                          specifier is calculated after subsetting                          the header.                     The \Seen flag is implicitly set; if this causes                     the flags to change they SHOULD be included as part                     of the FETCH responses.      BODY.PEEK[<section>]<<partial>>                     An alternate form of BODY[<section>] that does not                     implicitly set the \Seen flag.      BODYSTRUCTURE  The [MIME-IMB] body structure of the message.  This                     is computed by the server by parsing the [MIME-IMB]                     header fields in the [RFC-822] header and                     [MIME-IMB] headers.      ENVELOPE       The envelope structure of the message.  This is                     computed by the server by parsing the [RFC-822]                     header into the component parts, defaulting various                     fields as necessary.      FAST           Macro equivalent to: (FLAGS INTERNALDATE                     RFC822.SIZE)      FLAGS          The flags that are set for this message.      FULL           Macro equivalent to: (FLAGS INTERNALDATE                     RFC822.SIZE ENVELOPE BODY)      INTERNALDATE   The internal date of the message.      RFC822         Functionally equivalent to BODY[], differing in the                     syntax of the resulting untagged FETCH data (RFC822                     is returned).      RFC822.HEADER  Functionally equivalent to BODY.PEEK[HEADER],                     differing in the syntax of the resulting untagged                     FETCH data (RFC822.HEADER is returned).      RFC822.SIZE    The [RFC-822] size of the message.      RFC822.TEXT    Functionally equivalent to BODY[TEXT], differing in                     the syntax of the resulting untagged FETCH data                     (RFC822.TEXT is returned).      UID            The unique identifier for the message.   Example:    C: A654 FETCH 2:4 (FLAGS BODY[HEADER.FIELDS (DATE FROM)])               S: * 2 FETCH ....               S: * 3 FETCH ....               S: * 4 FETCH ....               S: A654 OK FETCH completed7.4.2.  FETCH Response   Contents:   message data      The FETCH response returns data about a message to the client.      The data are pairs of data item names and their values in      parentheses.  This response occurs as the result of a FETCH or      STORE command, as well as by unilateral server decision (e.g. flag      updates).      The current data items are:      BODY           A form of BODYSTRUCTURE without extension data.      BODY[<section>]<<origin_octet>>                     A string expressing the body contents of the                     specified section.  The string SHOULD be                     interpreted by the client according to the content                     transfer encoding, body type, and subtype.                     If the origin octet is specified, this string is a                     substring of the entire body contents, starting at                     that origin octet.  This means that BODY[]<0> MAY                     be truncated, but BODY[] is NEVER truncated.                     8-bit textual data is permitted if a [CHARSET]                     identifier is part of the body parameter                     parenthesized list for this section.  Note that                     headers (part specifiers HEADER or MIME, or the                     header portion of a MESSAGE/RFC822 part), MUST be                     7-bit; 8-bit characters are not permitted in                     headers.  Note also that the blank line at the end                     of the header is always included in header data.                     Non-textual data such as binary data MUST be                     transfer encoded into a textual form such as BASE64                     prior to being sent to the client.  To derive the                     original binary data, the client MUST decode the                     transfer encoded string.      BODYSTRUCTURE  A parenthesized list that describes the [MIME-IMB]                     body structure of a message.  This is computed by                     the server by parsing the [MIME-IMB] header fields,                     defaulting various fields as necessary.                     For example, a simple text message of 48 lines and                     2279 octets can have a body structure of: ("TEXT"                     "PLAIN" ("CHARSET" "US-ASCII") NIL NIL "7BIT" 2279                     48)                     Multiple parts are indicated by parenthesis                     nesting.  Instead of a body type as the first                     element of the parenthesized list there is a nested                     body.  The second element of the parenthesized list                     is the multipart subtype (mixed, digest, parallel,                     alternative, etc.).                     For example, a two part message consisting of a                     text and a BASE645-encoded text attachment can have                     a body structure of: (("TEXT" "PLAIN" ("CHARSET"                     "US-ASCII") NIL NIL "7BIT" 1152 23)("TEXT" "PLAIN"                     ("CHARSET" "US-ASCII" "NAME" "cc.diff")                     "<960723163407.20117h@cac.washington.edu>"                     "Compiler diff" "BASE64" 4554 73) "MIXED"))                     Extension data follows the multipart subtype.                     Extension data is never returned with the BODY                     fetch, but can be returned with a BODYSTRUCTURE                     fetch.  Extension data, if present, MUST be in the                     defined order.                     The extension data of a multipart body part are in                     the following order:                     body parameter parenthesized list                        A parenthesized list of attribute/value pairs                        [e.g. ("foo" "bar" "baz" "rag") where "bar" is                        the value of "foo" and "rag" is the value of                        "baz"] as defined in [MIME-IMB].                     body disposition                        A parenthesized list, consisting of a                        disposition type string followed by a                        parenthesized list of disposition                        attribute/value pairs.  The disposition type and                        attribute names will be defined in a future                        standards-track revision to [DISPOSITION].                     body language                        A string or parenthesized list giving the body                        language value as defined in [LANGUAGE-TAGS].                     Any following extension data are not yet defined in                     this version of the protocol.  Such extension data                     can consist of zero or more NILs, strings, numbers,                     or potentially nested parenthesized lists of such                     data.  Client implementations that do a                     BODYSTRUCTURE fetch MUST be prepared to accept such                     extension data.  Server implementations MUST NOT                     send such extension data until it has been defined                     by a revision of this protocol.                     The basic fields of a non-multipart body part are                     in the following order:                     body type                        A string giving the content media type name as                        defined in [MIME-IMB].                     body subtype                        A string giving the content subtype name as                        defined in [MIME-IMB].                     body parameter parenthesized list                        A parenthesized list of attribute/value pairs                        [e.g. ("foo" "bar" "baz" "rag") where "bar" is                        the value of "foo" and "rag" is the value of                        "baz"] as defined in [MIME-IMB].                     body id                        A string giving the content id as defined in                        [MIME-IMB].                     body description                        A string giving the content description as                        defined in [MIME-IMB].                     body encoding                        A string giving the content transfer encoding as                        defined in [MIME-IMB].                     body size                        A number giving the size of the body in octets.                        Note that this size is the size in its transfer                        encoding and not the resulting size after any                        decoding.                     A body type of type MESSAGE and subtype RFC822                     contains, immediately after the basic fields, the                     envelope structure, body structure, and size in                     text lines of the encapsulated message.                     A body type of type TEXT contains, immediately                     after the basic fields, the size of the body in                     text lines.  Note that this size is the size in its                     content transfer encoding and not the resulting                     size after any decoding.                     Extension data follows the basic fields and the                     type-specific fields listed above.  Extension data                     is never returned with the BODY fetch, but can be                     returned with a BODYSTRUCTURE fetch.  Extension                     data, if present, MUST be in the defined order.                     The extension data of a non-multipart body part are                     in the following order:                     body MD5                        A string giving the body MD5 value as defined in                        [MD5].                     body disposition                        A parenthesized list with the same content and                        function as the body disposition for a multipart                        body part.                     body language                        A string or parenthesized list giving the body                        language value as defined in [LANGUAGE-TAGS].                     Any following extension data are not yet defined in                     this version of the protocol, and would be as                     described above under multipart extension data.      ENVELOPE       A parenthesized list that describes the envelope                     structure of a message.  This is computed by the                     server by parsing the [RFC-822] header into the                     component parts, defaulting various fields as                     necessary.                     The fields of the envelope structure are in the                     following order: date, subject, from, sender,                     reply-to, to, cc, bcc, in-reply-to, and message-id.                     The date, subject, in-reply-to, and message-id                     fields are strings.  The from, sender, reply-to,                     to, cc, and bcc fields are parenthesized lists of                     address structures.                     An address structure is a parenthesized list that                     describes an electronic mail address.  The fields                     of an address structure are in the following order:                     personal name, [SMTP] at-domain-list (source                     route), mailbox name, and host name.                     [RFC-822] group syntax is indicated by a special                     form of address structure in which the host name                     field is NIL.  If the mailbox name field is also                     NIL, this is an end of group marker (semi-colon in                     RFC 822 syntax).  If the mailbox name field is                     non-NIL, this is a start of group marker, and the                     mailbox name field holds the group name phrase.                     Any field of an envelope or address structure that                     is not applicable is presented as NIL.  Note that                     the server MUST default the reply-to and sender                     fields from the from field; a client is not                     expected to know to do this.      FLAGS          A parenthesized list of flags that are set for this                     message.      INTERNALDATE   A string representing the internal date of the                     message.      RFC822         Equivalent to BODY[].      RFC822.HEADER  Equivalent to BODY.PEEK[HEADER].      RFC822.SIZE    A number expressing the [RFC-822] size of the                     message.      RFC822.TEXT    Equivalent to BODY[TEXT].      UID            A number expressing the unique identifier of the                     message.   Example:    S: * 23 FETCH (FLAGS (\Seen) RFC822.SIZE 44827)*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -