分享
 
 
 

RFC2111 - Content-ID and Message-ID Uniform Resource Locators

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

Network Working Group E. Levinson

Request for Comments: 2111 XIson, Inc.

Category: Standards Track March 1997

Content-ID and Message-ID Uniform Resource Locators

Status of this Memo

This document specifies an Internet standards track protocol for the

Internet community, and requests discussion and suggestions for

improvements. Please refer to the current edition of the "Internet

Official Protocol Standards" (STD 1) for the standardization state

and status of this protocol. Distribution of this memo is unlimited.

Abstract

The Uniform Resource Locator (URL) schemes, "cid:" and "mid:" allow

references to messages and the body parts of messages. For example,

within a single multipart message, one Html body part might include

embedded references to other parts of the same message.

1. IntrodUCtion

The use of [MIME] within email to convey Web pages and their

associated images requires a URL scheme to permit the HTML to refer

to the images or other data included in the message. The Content-ID

Uniform Resource Locator, "cid:", serves that purpose.

Similarly Net News readers use Message-IDs to link related messages

together. The Message-ID URL provides a scheme, "mid:", to refer to

such messages as a "resource".

The "mid" (Message-ID) and "cid" (Content-ID) URL schemes provide

identifiers for messages and their body parts. The "mid" scheme uses

(a part of) the message-id of an email message to refer to a specific

message. The "cid" scheme refers to a specific body part of a

message; its use is generally limited to references to other body

parts in the same message as the referring body part. The "mid"

scheme may also refer to a specific body part within a designated

message, by including the content-ID's address.

A note on terminology. The terms "body part" and "MIME entity" are

used interchangeably. They refer to the headers and body of a MIME

message, either the message itself or one of the body parts contained

in a Multipart message.

2. The MID and CID URL Schemes

RFC1738 [URL] reserves the "mid" and "cid" schemes for Message-ID and

Content-ID respectively. This memorandum defines the syntax for

those URLs. Because they use the same syntactic elements they are

presented together.

The URLs take the form

content-id = url-addr-spec

message-id = url-addr-spec

url-addr-spec = addr-spec ; URL encoding of RFC822 addr-spec

cid-url = "cid" ":" content-id

mid-url = "mid" ":" message-id [ "/" content-id ]

Note: in Internet mail messages, the addr-spec in a Content-ID

[MIME] or Message-ID [822] header are enclosed in angle brackets

(<>). Since addr-spec in a Message-ID or Content-ID might contain

characters not allowed within a URL; any such character (including

"/", which is reserved within the "mid" scheme) must be hex-

encoded using the %hh escape mechanism in [URL].

A "mid" URL with only a "message-id" refers to an entire message.

With the appended "content-id", it refers to a body part within a

message, as does a "cid" URL. The Content-ID of a MIME body part is

required to be globally unique. However, in many systems that store

messages, body parts are not indexed independently their context

(message). The "mid" URL long form was designed to supply the

context needed to support interoperability with such systems.

A implementation conforming to this specification is required to

support the "mid" URL long form (message-id/content-id). Conforming

implementations can choose to, but are not required to, take

advantage of the content-id's uniqueness and interpret a "cid" URL to

refer to any body part within the message store.

In limited circumstances (e.g., within multipart/alternate), a single

message may contain several body parts that have the same Content-ID.

That occurs, for example, when identical data can be Accessed through

different methods [MIME, sect. 7.2.3]. In those cases, conforming

implementations are required to use the rules of the containing MIME

entity (e.g., multi-part/alternate) to select the body part to which

the Content-ID refers.

A "cid" URL is converted to the corresponding Content-ID message

header [MIME] by removing the "cid:" prefix, converting %hh hex-

escaped characters to their ASCII equivalents and enclosing the

remaining parts with an angle bracket pair, "<" and ">". For

example, "mid:foo4%25foo1@bar.net" corresponds to

Message-ID: <foo4%foo1@bar.net>

A "mid" URL is converted to a Message-ID or Message-ID/Content-ID

pair in a similar fashion.

Both message-id and content-id are required to be globally unique.

That is, no two different messages will ever have the same Message-ID

addr-spec; no different body parts will ever have the same Content-ID

addr-spec. A common technique used by many message systems is to use

a time and date stamp along with the local host's domain name, e.g.,

950124.162336@XIson.com.

Some Examples

The following message contains an HTML body part that refers to an

image contained in another body part. Both body parts are contained

in a Multipart/Related MIME entity. The HTML IMG tag contains a

cidurl which points to the image.

From: foo1@bar.net

To: foo2@bar.net

Subject: A simple example

Mime-Version: 1.0

Content-Type: multipart/related; boundary="boundary-example-1";

type=Text/HTML

--boundary-example 1

Content-Type: Text/HTML; charset=US-ASCII

... text of the HTML document, which might contain a hyperlink

to the other body part, for example through a statement such as:

<IMG SRC="cid:foo4*foo1@bar.net" ALT="IETF logo">

--boundary-example-1

Content-ID: foo4*foo1@bar.net

Content-Type: IMAGE/GIF

Content-Transfer-Encoding: BASE64

R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5

NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A

etc...

--boundary-example-1--

The following message points to another message (hopefully still in

the recipient's message store).

From: bar@none.com

To: phooey@all.com

Subject: Here's how to do it

Content-type: text/html; charset=usascii

... The items in my

<A HREF= "mid:960830.1639@XIson.com/partA.960830.1639@XIson.com">

previous message</A>, shows how the approach you propose can be

used to accomplish ...

3. Security Considerations

The URLs defined here provide an addressing or referencing mechanism.

The values of these URLs disclose no more about the originators

environment than the corresponding Message-ID and Content-ID values.

Where concern exists about such disclosures the originator of a

message using mid and cid URLs must take precautions to insure that

confidential information is not disclosed. Those precautions should

already be in place to handle existing mail use of the Message-ID and

Content-ID.

4. References

[822] Crocker, D., "Standard for the Format of ARPA Internet Text

Messages," August 1982, University of Delaware, STD 11, RFC

822.

[MIME] N. Borenstein, N. Freed, "MIME (Multipurpose Internet Mail

Extensions) Part One: Mechanisms for Specifying and

Describing the Format of Internet Message Bodies,"

September 1993, RFC1521.

[URL] Berners-Lee, T., Masinter, L., and McCahill, M., "Uniform

Resource Locators (URL)," December 1994.

[MULREL] E. Levinson, "The MIME Multipart/Related Content-type,"

December 1995, RFC1874.

5. Acknowledgments

The original concept of "mid" and "cid" URLs were part of the Tim

Berners-Lee's original vision of the World Wide Web. The ideas and

design have benefited greatly by discussions with Harald Alvestrand,

Dan Connolly, Roy Fielding, Larry Masinter, Jacob Palme, and others

in the MHTML working group.

6. Author's Address

Edward Levinson

47 Clive Street

Metuchen, NJ 08840-1060

USA

+1 908 549 3716

<XIson@cnj.digex.net>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有