RFC2046 - Multipurpose Internet Mail Extensions (MIME) Part(3)

时间:2005-02-15 来源: 作者: 点击:
RFC822 Extensions. The chairman of that group, Greg Vaudreuil, may be reached at: Gregory M. Vaudreuil Octel Network Services 17080 Dallas Parkway Dallas, TX 75248-1905 USA EMail: Greg.Vaudreuil@Octe
  RFC822 Extensions. The chairman of that group,
Greg Vaudreuil, may be reached at:

Gregory M. Vaudreuil
Octel Network Services
17080 Dallas Parkway
Dallas, TX 75248-1905
USA

EMail: Greg.Vaudreuil@Octel.Com

Appendix A -- Collected Grammar

This appendix contains the complete BNF grammar for all the syntax
specified by this document.

By itself, however, this grammar is incomplete. It refers by name to
several syntax rules that are defined by RFC822. Rather than
reproduce those definitions here, and risk unintentional differences
between the two, this document simply refers the reader to RFC822
for the remaining definitions. Wherever a term is undefined, it
refers to the RFC822 definition.

boundary := 0*69<bchars> bcharsnospace

bchars := bcharsnospace / " "

bcharsnospace := DIGIT / ALPHA / "'" / "(" / ")" /
"+" / "_" / "," / "-" / "." /
"/" / ":" / "=" / "?"

body-part := <"message" as defined in RFC822, with all
header fields optional, not starting with the
specified dash-boundary, and with the
delimiter not occurring anywhere in the
body part. Note that the semantics of a
part differ from the semantics of a message,
as described in the text.>

close-delimiter := delimiter "--"

dash-boundary := "--" boundary
; boundary taken from the value of
; boundary parameter of the
; Content-Type field.

delimiter := CRLF dash-boundary

discard-text := *(*text CRLF)
; May be ignored or discarded.

encapsulation := delimiter transport-padding
CRLF body-part

epilogue := discard-text

multipart-body := [preamble CRLF]
dash-boundary transport-padding CRLF
body-part *encapsulation

close-delimiter transport-padding
[CRLF epilogue]

preamble := discard-text

transport-padding := *LWSP-char
; Composers MUST NOT generate
; non-zero length transport
; padding, but receivers MUST
; be able to handle padding
; added by message transports.
------分隔线----------------------------
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
推荐内容