Re: [Sedate] Distinguishing "optional extra" vs "you need to understand this to process the date accurately" extensions

Carsten Bormann <cabo@tzi.org> Thu, 09 December 2021 14:59 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: sedate@ietfa.amsl.com
Delivered-To: sedate@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A16673A0D39 for <sedate@ietfa.amsl.com>; Thu, 9 Dec 2021 06:59:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rloLtxtstZFl for <sedate@ietfa.amsl.com>; Thu, 9 Dec 2021 06:59:50 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2B8513A0D3E for <sedate@ietf.org>; Thu, 9 Dec 2021 06:59:49 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4J8xyp3cHLzDCkm; Thu, 9 Dec 2021 15:59:46 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <9415a87f-dc8a-47d7-9e2e-9a1f5f6617d5@dogfood.fastmail.com>
Date: Thu, 09 Dec 2021 15:59:46 +0100
Cc: sedate@ietf.org
X-Mao-Original-Outgoing-Id: 660754786.158572-898662d45cd10d9ad9a1493564a0a1e5
Content-Transfer-Encoding: quoted-printable
Message-Id: <5EB507A6-091B-4E19-A9A0-321F93DD3F4D@tzi.org>
References: <9415a87f-dc8a-47d7-9e2e-9a1f5f6617d5@dogfood.fastmail.com>
To: Bron Gondwana <brong@fastmailteam.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/sedate/lbDDeq-3q2ngTqEcNJdK1WQceyM>
Subject: Re: [Sedate] Distinguishing "optional extra" vs "you need to understand this to process the date accurately" extensions
X-BeenThere: sedate@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Serialising Extended Data About Times and Events <sedate.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sedate>, <mailto:sedate-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sedate/>
List-Post: <mailto:sedate@ietf.org>
List-Help: <mailto:sedate-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sedate>, <mailto:sedate-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Dec 2021 14:59:55 -0000

On 2021-12-09, at 14:04, Bron Gondwana <brong@fastmailteam.com> wrote:
> 
> So I wonder if we need a syntax to say "if this extension is not recognized by the receiving system, it SHOULD throw an error and MUST NOT expect the date to be exact" - either a reserved namespace for such extensions, or some other syntactical sugar.

Protocols typically have a way to distinguish “critical” (or “must-understand”) options from “elective” options.  Sometimes, the distinction is baked into the option code, sometimes there is separate place (which also allows the same option to be used in both ways).  Our syntax should provide an easy way to do the latter, as in:

   1996-12-19T16:39:57-08:00[America/Los_Angeles][u-ca=hebrew]
(Elective, ignore option if not understood)

   1996-12-19T16:39:57-08:00[America/Los_Angeles][u-ca!hebrew]
(Critical, must understand/must reject date if not understood)

Well, we need better examples...

Grüße, Carsten