rfc2912.txt

来自「RFC 的详细文档!」· 文本 代码 · 共 620 行 · 第 1/2 页

TXT
620
字号






Network Working Group                                           G. Klyne
Request for Comments: 2912                          Content Technologies
Category: Standards Track                                 September 2000


               Indicating Media Features for MIME Content

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.

Copyright Notice

   Copyright (C) The Internet Society (2000).  All Rights Reserved.

Abstract

   In "A Syntax for Describing Media Feature Sets", an expression format
   is presented for describing media feature capabilities using simple
   media feature tags.

   This memo defines a Multipurpose Internet Mail Extensions (MIME)
   'Content-features:' header that can be used to annotate a MIME
   message part using this expression format, and indicates some ways it
   might be used.






















Klyne                       Standards Track                     [Page 1]

RFC 2912       Indicating Media Features for MIME Content September 2000


Table of Contents

   1. Introduction ...............................................  2
      1.1 Terminology and document conventions ...................  2
   2. Motivation and goals .......................................  3
   3. The 'Content-features:' MIME header ........................  4
      3.1 Whitespace and folding long headers ....................  4
      3.2 Usage considerations ...................................  4
        3.2.1 Simple message parts ...............................  4
        3.2.2 Multipart and other composites .....................  5
        3.2.3 Reference to external data .........................  5
   4. Examples ...................................................  5
      4.1 Simple message .........................................  5
      4.2 Fax message ............................................  6
      4.3 Multipart/alternative data .............................  6
      4.4 Reference to external message data .....................  8
      4.5 Compressed data ........................................  8
      4.6 Multipart/related data .................................  8
   5. Security Considerations ....................................  9
   6. Acknowledgements ........................................... 10
   7. References ................................................. 10
   8. Author's Address ........................................... 10
   Full Copyright Statement ...................................... 11

1. Introduction

   In "A Syntax for Describing Media Feature Sets" [1], an expression
   format is presented for describing media feature capabilities as a
   combination of simple media feature tags, registered according to
   "Media Feature Tag Registration Procedure" [2].  This provides a
   format for message handling agents to describe the media feature
   content of messages that they can handle.

   This memo defines a MIME 'Content-features:' header that can be used
   to annotate a MIME message part using these feature expressions.
   This header provides a means to indicate media-related features of
   message content that go beyond the MIME content type.

   Consideration is also given to how it may be used to present message
   media content information that is problematic to express within the
   basic MIME framework.

1.1 Terminology and document conventions

   This section defines a number of terms and other document
   conventions, which are used with specific meaning in this memo.





Klyne                       Standards Track                     [Page 2]

RFC 2912       Indicating Media Features for MIME Content September 2000


   media feature
         information that indicates facilities assumed to be available
         for the message content to be properly rendered or otherwise
         presented.  Media features are not intended to include
         information that affects message transmission.

   feature set
         some set of media features described by a media feature
         assertion, as described in "A Syntax for Describing Media
         Feature Sets" [1].  (See that memo for a more formal definition
         of this term.)

   feature set expression
         a string that describes some feature set, formulated according
         to the rules in "A Syntax for Describing Media Feature Sets"
         [1] (and possibly extended by other specifications).

   This specification uses syntax notation and conventions described in
   RFC 2234 "Augmented BNF for Syntax Specifications: ABNF" [3].

         NOTE:  Comments like this provide additional nonessential
         information about the rationale behind this document.  Such
         information is not needed for building a conformant
         implementation, but may help those who wish to understand the
         design in greater depth.

2. Motivation and goals

   It is envisaged that media feature labelling of message parts may be
   used in the following ways:

   o  to supply more detailed media feature information about a message
      content than can be provided by the 'Content-type:' header.

   o  to provide summary media feature information (possibly including
      MIME content types) about the content of a composite MIME message
      part (e.g. 'multipart' or 'message'), without having to open up
      the inner content of the message.

   o  to supply media feature information about external data referenced
      by a message part (e.g. 'message/external-body' MIME type).  This
      information would not be available by examination of the message
      content.

   o  to describe the content of a message that is encrypted or encoded
      using some application-specific file structure that hides the
      content from a MIME processor.  This information also would not be
      generally available by examination of the message content.



Klyne                       Standards Track                     [Page 3]

RFC 2912       Indicating Media Features for MIME Content September 2000


3. The 'Content-features:' MIME header

   A new header field is defined that extends the allowable formats for
   'optional-field' [4] with the following syntax:

      optional-field =/ "Content-features" ":" Feature-expr
      Feature-expr   =  filter      ; See [1], section 4.1

   where 'filter' is the media feature expression format defined by "A
   Syntax for Describing Media Feature Sets" [1].

   This header provides additional information about the message content
   directly contained or indirectly referenced in the corresponding MIME
   message part.

3.1 Whitespace and folding long headers

   In some circumstances, media feature expressions can be very long.

   According to "A Syntax for Describing Media Feature Sets" [1],
   whitespace is allowed between lexical elements of a media feature
   expression.  Further, RFC822/MIME [4,5] allows folding of long
   headers at points where whitespace appears to avoid line length
   restrictions.

   Therefore, it is recommended that whitespace is included as
   permitted, especially in long media feature expressions, to
   facilitate the folding of headers by agents that do not otherwise
   understand the syntax of this field.

3.2 Usage considerations

3.2.1 Simple message parts

   When applied to a simple MIME message part, the header should appear
   just once and is used to convey additional information about the
   message part content that goes beyond that provided by the MIME
   'Content-type:' header field.  The 'Content-features:' header may
   indicate a content type that is different than that given by the MIME
   'Content-type:' header.  This is possible but not recommended when
   applied to a non-composite body part:  in any case, MIME content type
   processing must be performed in accordance with the 'Content-type:'
   header.

         NOTE:  Once the message content has been delivered to an
         application, it is possible that subsequent processing may be
         affected by content type information indicated by the media
         feature expression.  See example 4.5 below.



Klyne                       Standards Track                     [Page 4]

RFC 2912       Indicating Media Features for MIME Content September 2000


3.2.2 Multipart and other composites

   'Content-features:' headers may be applied to a MIME multipart
   indicating information about the inner content of the multipart.

   Implementations must not assume a one-to-one relationship between
   'Content-features' headers and contained body parts.  Headers may
   appear on a containing multipart wrapper in a different order than
   the body parts to which they refer;  a single header may refer to
   more than one contained body part;  several headers may refer to the
   same contained body part.

   If it is important to relate specific media features to specific
   contained MIME body parts, then the 'Content-features:' header should
   be applied directly to the body part concerned, rather than the
   surrounding composite.

         NOTE:  The intent here is to allow summary media feature
         information to be provided without having to open up and
         examine the inner content of the MIME message.

   Similar usage may apply when the message format is a non-MIME or
   opaque composite;  e.g. 'application/zip', or an encrypted message.
   In these cases, the option of examining the message content to
   discover media feature information is not available.

3.2.3 Reference to external data

   Media feature information about data indirectly referenced by a MIME
   body part rather than contained within a message can be conveyed
   using one or more 'Content-features:' headers.

   For example, media information --including contained MIME content
   type(s)-- about the data referenced by a MIME 'Message/external-body'
   may be conveyed.

4. Examples

4.1 Simple message

      Mime-Version: 1.0
      Content-type: text/plain;charset=US-ASCII
      Content-features: (& (paper-size=A4) (ua-media=stationery) )

       :
      (data)
       :




Klyne                       Standards Track                     [Page 5]

RFC 2912       Indicating Media Features for MIME Content September 2000


4.2 Fax message

      Mime-Version: 1.0
      Content-Type: multipart/mixed; boundary="break"
      Content-features:
        (& (Type="image/tiff")
           (color=Binary)
           (image-file-structure=TIFF-S)
           (dpi=200)
           (dpi-xyratio=200/100)
           (paper-size=A4)
           (image-coding=MH) (MRC-mode=0)
           (ua-media=stationery) )

      --break
      Content-Type: image/tiff; name="coverpage.tiff"
      Content-Transfer-Encoding: base64
      Content-Description: This part is a coverpage
      Content-Disposition: attachment; filename="coverpage.tiff"

      0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAA
      AAAAAAAAEAAAZAAAAAEAAAD+////AAAAAAAAAAD////////////////////
       :
      (more data)

⌨️ 快捷键说明

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