|
Try clicking here.
9.2 Example with absolute URIs to an embedded GIF
From: foo1@bar.
To: foo2@bar.
Subject: A simple
Mime-Version: 1.0
Content-Type: Multipart/related; boundary="boundary-example-1";
type=Text/HTML; start=foo3*foo1@bar.
--boundary-example-1
Content-Type: Text/HTML;charset=US-
Content-ID:
... text of the HTML document, which might contain a
to the other body part, for example through a statement such as

--boundary-example-1
Content-Location
http://www.ietf.cnri.reston.va.us/images/ietflogo.
Content-Type: IMAGE/
Content-Transfer-Encoding: BASE64
R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk
NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4
etc...
--boundary-example-1--
9.3 Example with relative URIs to an embedded GIF
From: foo1@bar.
To: foo2@bar.
Subject: A simple
Mime-Version: 1.0
Content-Base: http://www.ietf.cnri.reston.va.
Content-Type: Multipart/related; boundary="boundary-example-1";
type=Text/
Palme & Hopmann Standards Track [Page 13]
RFC 2110 MHTML March 1997
--boundary-example-1
Content-Type: Text/HTML; charset=ISO-8859-1
Content-Transfer-Encoding: QUOTED-
... text of the HTML document, which might contain a
to the other body part, for example through a statement such as

Example of a copyright sign encoded with Quoted-Printable: =A
Example of a copyright sign mapped onto HTML markup: ¨
--boundary-example-1
Content-Location: /images/ietflogo.
Content-Type: IMAGE/
Content-Transfer-Encoding: BASE64
R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk
NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4
etc...
--boundary-example-1--
9.4 Example using CID URL and Content-ID header to an embedded
From: foo1@bar.
To: foo2@bar.
Subject: A simple
Mime-Version: 1.0
Content-Type: Multipart/related; boundary="boundary-example-1";
type=Text/
--boundary-example-1
Content-Type: Text/HTML; charset=US-
... text of the HTML document, which might contain a
to the other body part, for example through a statement such as
--boundary-example-1
Content-ID:
Content-Transfer-Encoding: BASE64
R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk
NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4
etc...
--boundary-example-1--
Palme & Hopmann Standards Track [Page 14]
RFC 2110 MHTML March 1997
10. Content-Disposition
Note the specification in [REL] on the relations between Content
Disposition and multipart/related
11. Character encoding issues and end-of-line
For the encoding of characters in HTML documents and other
documents into a MIME-compatible octet stream, the
mechanisms are relevant
- HTML [HTML2, HTML-I18N] as an application of SGML [SGML]
characters to be denoted by character entities as well as by
character references (e.g. "Latin small letter a with acute accent
may be represented by "á" or "á") in the HTML markup
- HTML documents, in common with other documents of the
"Content-Type text", can be represented in MIME using one
several character encodings. The MIME Content-Type "charset
parameter value indicates the particular encoding used. For
exact meaning and use of the "charset" parameter, please
[MIME-IMB section 4.2].
Note that the "charset" parameter refers only to the
character encoding. For example, the string "á" can be
in MIME with "charset=US-ASCII", while the raw character "
small letter a with acute accent" cannot
The above mechanisms are well defined and documented, and
not further explained here. In sending a message, all the
mentioned mechanisms MAY be used, and any mixture of them MAY
when sending the document via e-mail. Receiving mail user
(together with any Web browser they may use to display the document
MUST be capable of handling any combinations of these mechanisms
Also note that
- Any documents including HTML documents that contain octet
outside the 7-bit range need a content-transfer-encoding
before transmission over certain transport
[MIME1, chapter 5].
- The MIME standard [MIME1] requires that documents of "Content-Type
Text MUST be in canonical form before Content-Transfer-Encoding
i.e. that line breaks are encoded as CRLFs, not as bare CRs or
LFs or something else. This is in contrast to [HTTP] where
3.6.1 allows other representations of line breaks
Palme & Hopmann Standards Track [Page 15]
RFC 2110 MHTML March 1997
Note that this might cause problems with integrity checks based
checksums, which might not be preserved when moving a document
the HTTP to the MIME environment. If a document has to be
in such a way that a checksum integrity check becomes invalid,
this integrity check header SHOULD be removed from the document
Other sources of problems are Content-Encoding used in HTTP but
allowed in MIME, and charsets that are not able to represent
breaks as CRLF. A good overview of the differences between HTTP
MIME with regards to "Content-Type: Text" can be found in [HTTP],
appendix C
If the original document has line breaks in the canonical
(CRLF), then the document SHOULD remain unconverted so that
check sums are not invalidated
A provider of HTML documents who wants his documents to
transferable via both HTTP and SMTP without invalidating
integrity checks, should always provide original documents in
canonical form with CRLF for line breaks
Some transport mechanisms may specify a default "charset"
if none is supplied [HTTP, MIME1]. Because the default differs
different mechanisms, when HTML is transferred through mail,
charset parameter SHOULD be included, rather than relying on
default
12. Security
Some Security Considerations include the potential to mail someone
object, and claim that it is represented by a particular URI (
giving it a Content-Location header). There can be no assurance
a WWW request for that same URI would normally result in that
object. It might be unsuitable to cache the data in such a way
the cached data can be used for retrieval of this URI from
messages or message parts than those included in the same message
the Content-Location header. Because of this problem, receiving
Agents SHOULD not cache this data in the same way that data that
retrieved through an HTTP or FTP request might be cached
URLs, especially File URLs, may in their name contain company
internal information, which may then inadvertently be revealed
recipients of documents containing such URLs
One way of implementing messages with linked body parts is to
the linked body parts in a combined mail and WWW proxy server.
mail client is only given the start body part, which it passes to
web browser. This web browser requests the linked parts from
Palme & Hopmann Standards Track [Page 16]
RFC 2110 MHTML March 1997
proxy server. If this method is used, and if the combined server
used by more than one user, then methods must be employed to
that body parts of a message to one person is not retrievable
another person. Use of passwords (also known as tickets or
cookies) is one way of achieving this. Note that some caching
proxy servers may not distinguish between cached objects from e-
and HTTP, which may be a security risk
In addition, by allowing people to mail aggregate objects, we
opening the door to other potential security problems that until
were only problems for WWW users. For example, some HTML
now either themselves contain executable content (JavaScript)
contain links to executable content (The "INSERT" specification
Java). It would be exceedingly dangerous for a receiving User
to execute content received through a mail message without
attention to restrictions on the capabilities of that
content
Some WWW applications hide passwords and tickets (access tokens
information which may not be available to anyone) and other
information in hidden fields in the web documents or in on-the-
constructed URLs. If a person gets such a document, and forwards
via e-mail, the person may inadvertently disclose
information
13.
Harald T. Alvestrand, Richard Baker, Dave Crocker, Martin J. Duerst
Lewis Geer, Roy Fielding, Al Gilman, Paul Hoffman, Richard W
Jesmajian, Mark K. Joseph, Greg Herlihy, Valdis Kletnieks,
LaLiberte, Ed Levinson, Jay Levitt, Albert Lunde, Larry Masinter
Keith Moore, Gavin Nicol, Pete Resnick, Jon Smirl, Einar Stefferud
Jamie Zawinski, Steve Zilles and several other people have helped
with preparing this document. I alone take responsibility for
errors which may still be in the document
Palme & Hopmann Standards Track [Page 17]
RFC 2110 MHTML March 1997
14.
Ref. Author,
--------- --------------------------------------------------------
[CONDISP] R. Troost, S. Dorner: "Communicating
Information in Internet Messages:
Content-Disposition Header", RFC 1806, June 1995.
[HOSTS] R. Braden (editor): "Requirements for Internet Hosts --
Application and Support", STD-3, RFC 1123, October 1989.
[HTML-I18N] F. Yergeau, G. Nicol, G. Adams, & M. Duerst
"Internationalization of the Hypertext
Language". RFC 2070, January 1997.
[HTML2] T. Berners-Lee, D. Connolly: "Hypertext Markup
- 2.0", RFC 1866, November 1995.
[HTTP] T. Berners-Lee, R. Fielding, H. Frystyk:
Transfer Protocol -- HTTP/1.0. RFC 1945, May 1996.
[MD5] R. Rivest: "The MD5 Message-Digest Algorithm", RFC 1321,
April 1992.
[MIDCID] E. Levinson: "Content-ID and Message-ID
Resource Locators". RFC 2111, February 1997.
[MIME-IMB] N. Freed & N. Borenstein: "Multipurpose Internet
Extensions (MIME) Part One: Format of Internet
Bedies". RFC 2045, November 1996.
[MIME1] N. Borenstein & N. Freed: "MIME (Multipurpose
Mail Extensions) Part One: Mechanisms for Specifying
Describing the Format of Internet Message Bodies",
1521, Sept 1993.
[MIME2] N. Borenstein & N. Freed: "Multipurpose Internet
Extensions (MIME) Part Two: Media Types". RFC 2046,
November 1996.
[NEWS] M.R. Horton, R. Adams: "Standard for interchange
USENET messages", RFC 1036, December 1987.
Palme & Hopmann Standards Track [Page 18]
RFC 2110 MHTML March 1997
[PDF] Bienz, T., Cohn, R. and Meehan, J.: "Portable
Format Reference Manual, Version 1.1", Adboe
Inc
[REL] Edward Levinson: "The MIME Multipart/Related Content
Type". RFC 2112, February 1997.
[RELURL] R. Fielding: "Relative Uniform Resource Locators",
1808, June 1995.
[RFC822] D. Crocker: "Standard for the format of ARPA
text messages." STD 11, RFC 822, August 1982.
[SGML] ISO 8879. Information Processing -- Text and Office -
Standard Generalized Markup Language (SGML),
1986.
[SMTP] J. Postel: "Simple Mail Transfer Protocol", STD 10,
821, August 1982.
[URL] T. Berners-Lee, L. Masinter, M. McCahill: "
Resource Locators (URL)", RFC 1738, December 1994.
[URLBODY] N. Freed and Keith Moore: "Definition of the URL
External-Body Access-Type", RFC 2017, October 1996.
15. Author's
For contacting the editors, preferably write to Jacob Palme
than Alex Hopmann
Jacob Palme Phone: +46-8-16 16 67
Stockholm University and KTH Fax: +46-8-783 08 29
Electrum 230 E-mail: jpalme@dsv.su.
S-164 40 Kista,
Alex Hopmann E-mail: alexhop@microsoft.
Microsoft
3590 North First
Suite 300
San
CA 95134
Working group chairman
Einar Stefferud
Palme & Hopmann Standards Track [Page 19]
if you see any problems within the linking, don't worry be happy,
this is version 0.1 of the Relevance System and you gotta expect some crappy subroutines sometimes,
just be content we did not write this in Java, which would have made this "bigger and better" HAHAHHA.
RFC documents can be found at I.E.T.F.
Relevance System Copyright © 2002 Spectrum WorldResearch
other technical nosh by ServerMasters Corporation
collaboration of BobX