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

Alexey Melnikov <aamelnikov@fastmail.fm> Wed, 26 April 2023 09:29 UTC

Return-Path: <aamelnikov@fastmail.fm>
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 3BAF3C151557; Wed, 26 Apr 2023 02:29:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmail.fm header.b="V0DMzHOl"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="Dj0t7+zI"
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 xv-RXiDwCAWU; Wed, 26 Apr 2023 02:29:06 -0700 (PDT)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6A8BDC151556; Wed, 26 Apr 2023 02:29:06 -0700 (PDT)
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 963205C0140; Wed, 26 Apr 2023 05:29:05 -0400 (EDT)
Received: from imap52 ([10.202.2.102]) by compute5.internal (MEProxy); Wed, 26 Apr 2023 05:29:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1682501345; x=1682587745; bh=0N PKWZO6saeuUODtRJWbnKUCDCv9a8T2NsVpQ/cLULk=; b=V0DMzHOlF/kFGE7wWW h/1XOSzG834sqtZAi7txUGEVgWuho2RJlGZALeGANAdFDG/pr03fpJsBRPuQXjw8 n7omQ/9ls44kAKjpcfhNLdjJAbSkw0WhxkzVGK799ckJjqeJo1gz091sKhFbnN7L MJnWmp/nOb3S85nZxX3C4Ke6qkh90Fb+0ejBjTAtOL1jtr7cPtpoXyFZUIqOJRgz bSXNMKtVUiOmTJPxPhpV59LHzQbLlEGdYNRmJqELh+JmqKHJ4OtSKpyHbsUvUBue UxA5ZABdNS2ffAcypfbD4p4amzFIVpOtrUeaYZumpyYIM74GNog6c4AHQOepi6wa jY9g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1682501345; x=1682587745; bh=0NPKWZO6saeuU ODtRJWbnKUCDCv9a8T2NsVpQ/cLULk=; b=Dj0t7+zIq7KcFC5AWdEuh2ZoQeJHD AP/6o3Hczd6q/ZQKNNoYL2Ek5xOAMk7Vw8zj+kJipseDN6mWmg87wfpsa3BElAsD j+dEWHK8HfPbo2XvVpgRRLJ7AxaMU6RbWv1b4C0xRb79/GLxD5xAljgw/3+bFHt2 QJW7kybjc4uzL/k8iTTCaG/7IxZvNvdknoJINS00Q9dBwn2G2wwjoIn1nh9T9lHj +8AGiGQJZZ21j1kt+OpPGdykiPadi+g813WehA1DE5IBwEeQc2SvWAcRv7Vp2Q0j Zj/4XIrWz+Z9bAKrZp34AJSSNtJhvz59I2BvQN3JvEO0/A4S0yUF4o3CA==
X-ME-Sender: <xms:4e5IZNWU7zA7HBSimlOgFLtSRPHdr-HnPOLiiE3mhRQU0RBce-GPUw> <xme:4e5IZNnYC0jyJ0hP5URPbMDEtWpsOPEhjak66owvZAz9fPLzFiMbJPYrylcsgxfs3 T-uK_pOXdGTVzo5Ag>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedugedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvvefutgesth dtredtreertdenucfhrhhomhepfdetlhgvgigvhicuofgvlhhnihhkohhvfdcuoegrrghm vghlnhhikhhovhesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhephefgue eileffleetfeelheduvdeiveevfeegfedulefffeeuleduhfevtdekveelnecuffhomhgr ihhnpehivghtfhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrrghmvghlnhhikhhovhesfhgrshhtmhgrihhlrdhfmh
X-ME-Proxy: <xmx:4e5IZJaiSl_DIVy0t38RsRTqxHl7GtbAdUds2O6zDjFcFTxhkaZwCA> <xmx:4e5IZAVqBdzDjY0TEo79uLvn5WUBUFy0fLfg4RdaEkfioi2PWmkkTw> <xmx:4e5IZHlmbtrrfMUfXSmYB3vTvfQ-Q3GGUoRyQhMjY1RI-aN6vzjh4A> <xmx:4e5IZPvQm0JjG_J3hE29N19FV_pGw3BgioRWdh71jzqoHhf9u4QYOA>
Feedback-ID: if62040e7:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 44A5AC60091; Wed, 26 Apr 2023 05:29:05 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-374-g72c94f7a42-fm-20230417.001-g72c94f7a
Mime-Version: 1.0
Message-Id: <f2cedafd-cccc-4ba3-bd30-e0ea0392a3d4@app.fastmail.com>
In-Reply-To: <BF493A3EC74EA23346BBF6A5@PSB>
References: <BF493A3EC74EA23346BBF6A5@PSB>
Date: Wed, 26 Apr 2023 10:28:43 +0100
From: Alexey Melnikov <aamelnikov@fastmail.fm>
To: John C Klensin <john-ietf@jck.com>, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: DISPATCH <dispatch@ietf.org>, media-types@ietf.org
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/dispatch/exKWFdM5JSqYssUrGXQYwT7Qmp4>
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: Wed, 26 Apr 2023 09:29:11 -0000

Hi John,

On Wed, Apr 19, 2023, at 12:01 AM, John C Klensin wrote:
> 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.

I am not arguing in favour or against have a new registry, but I got an impression that parameters like "charset" are shared across all text/* media types, and "boundary" is common for all multipart/* media types. So even if originally there was no intent to share parameters, I don't think your statement above is still true.

Best Regards,
Alexey

> (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
>
>
> _______________________________________________
> dispatch mailing list
> dispatch@ietf.org
> https://www.ietf.org/mailman/listinfo/dispatch