Re: [dispatch] IANA Registry for parameters for the MIME header field "Content-Type" ?

John C Klensin <john-ietf@jck.com> Tue, 18 April 2023 23:03 UTC

Return-Path: <john-ietf@jck.com>
X-Original-To: dispatch@ietfa.amsl.com
Delivered-To: dispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 967B2C14CEFA; Tue, 18 Apr 2023 16:03:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.894
X-Spam-Level:
X-Spam-Status: No, score=-6.894 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PUEUFVmk9Zi7; Tue, 18 Apr 2023 16:03:07 -0700 (PDT)
Received: from bsa2.jck.com (ns.jck.com [70.88.254.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E6ADEC151554; Tue, 18 Apr 2023 16:02:04 -0700 (PDT)
Received: from [198.252.137.58] (helo=PSB) by bsa2.jck.com with esmtp (Exim 4.82 (FreeBSD)) (envelope-from <john-ietf@jck.com>) id 1pouKp-000HXH-7p; Tue, 18 Apr 2023 19:02:03 -0400
Date: Tue, 18 Apr 2023 19:01:57 -0400
From: John C Klensin <john-ietf@jck.com>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
cc: dispatch@ietf.org, media-types@ietf.org
Message-ID: <BF493A3EC74EA23346BBF6A5@PSB>
X-Mailer: Mulberry/4.0.8 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-SA-Exim-Connect-IP: 198.252.137.58
X-SA-Exim-Mail-From: john-ietf@jck.com
X-SA-Exim-Scanned: No (on bsa2.jck.com); SAEximRunCond expanded to false
Archived-At: <https://mailarchive.ietf.org/arch/msg/dispatch/G44yiA_3oT-0ViYyQDaMfpYoPyc>
Subject: Re: [dispatch] IANA Registry for parameters for the MIME header field "Content-Type" ?
X-BeenThere: dispatch@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: DISPATCH Working Group Mail List <dispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dispatch>, <mailto:dispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dispatch/>
List-Post: <mailto:dispatch@ietf.org>
List-Help: <mailto:dispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dispatch>, <mailto:dispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Apr 2023 23:03:11 -0000

Dan,

This probably falls within the scope of the existing MEDIAMAN WG
(copied).  Two observations:

(1) There was, at least as I recall, never a plan for parameters
to be shared, using the same keywords, value set, and semantics
across content-types, especially top-level content types.
Unless we intent to change that, it is not clear what value a
registry might have.

(2) While content-type parameters seemed like a good idea for
email and probably were, they introduce some interesting issues
for URLs.  Interactions with the latter have led to structured
content-type subtypes of the application/foo+bar+baz variety.
MEDIAMAN is explicitly addressing that topic [1].  The
relationship between the two approaches is a major subject of a
note I've been trying to find time to write since IETF 116.

best,
   john
 

[1] See, e.g.,
https://datatracker.ietf.org/doc/draft-ietf-mediaman-suffixes/

--On Tuesday, April 18, 2023 16:50 -0400 Daniel Kahn Gillmor
<dkg@fifthhorseman.net> wrote:

> Hey IETF folks--
> 
> While polishing draft-ietf-lamps-header-protection, i noticed
> that there is no IANA registry for parameters for the
> Content-Type MIME header field.
> 
> Some of these are pretty common, like "boundary" (for
> distinguishing subparts of any multipart MIME part) and
> "charset" (for identifying the encoding used in a text part),
> and others are more obscure.
> 
> Scanning a reasonably large mail corpus, i found a range of
> parameters used:
> 
>   - boundary
>   - charset
>   - delsp
>   - format
>   - markup
>   - micalg
>   - name
>   - protected-headers
>   - protocol
>   - reply-type
>   - report-type
>   - smime-type
>   - type
> 
> I note that there are also some comparably-structured
> "parameter" fields for the Content-Disposition header (e.g.
> "filename"), though i doubt that there are so many as there
> are for Content-Type.
> 
> It seems like it might be worthwhile to try to establish a
> registry for these parameters (at least for Content-Type, so
> that there is at least a stable reference that can be used by
> a MUA that wants to handle the parts appropriately..
> 
> Any thoughts about the right place to do this work on e-mail
> in the IETF?
> 
>         --dkg
> 
> PS to be clear, it is not the intent of this message to:
> 
>  - create any new document dependency that might block
>    draft-ietf-lamps-protected-headers
> 
>  - define any new parameters for Content-Type



--On Tuesday, April 18, 2023 16:50 -0400 Daniel Kahn Gillmor
<dkg@fifthhorseman.net> wrote:

> Hey IETF folks--
> 
> While polishing draft-ietf-lamps-header-protection, i noticed
> that there is no IANA registry for parameters for the
> Content-Type MIME header field.
> 
> Some of these are pretty common, like "boundary" (for
> distinguishing subparts of any multipart MIME part) and
> "charset" (for identifying the encoding used in a text part),
> and others are more obscure.
> 
> Scanning a reasonably large mail corpus, i found a range of
> parameters used:
> 
>   - boundary
>   - charset
>   - delsp
>   - format
>   - markup
>   - micalg
>   - name
>   - protected-headers
>   - protocol
>   - reply-type
>   - report-type
>   - smime-type
>   - type
> 
> I note that there are also some comparably-structured
> "parameter" fields for the Content-Disposition header (e.g.
> "filename"), though i doubt that there are so many as there
> are for Content-Type.
> 
> It seems like it might be worthwhile to try to establish a
> registry for these parameters (at least for Content-Type, so
> that there is at least a stable reference that can be used by
> a MUA that wants to handle the parts appropriately..
> 
> Any thoughts about the right place to do this work on e-mail
> in the IETF?
> 
>         --dkg
> 
> PS to be clear, it is not the intent of this message to:
> 
>  - create any new document dependency that might block
>    draft-ietf-lamps-protected-headers
> 
>  - define any new parameters for Content-Type