Re: [abnf-discuss] constrained-01 - advantage?

Paul Kyzivat <paul.kyzivat@comcast.net> Mon, 14 November 2016 15:23 UTC

Return-Path: <paul.kyzivat@comcast.net>
X-Original-To: abnf-discuss@ietfa.amsl.com
Delivered-To: abnf-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2CBB712960E for <abnf-discuss@ietfa.amsl.com>; Mon, 14 Nov 2016 07:23:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.197
X-Spam-Level:
X-Spam-Status: No, score=-4.197 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-1.497, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=comcast.net
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 vCDVoaXxfYdS for <abnf-discuss@ietfa.amsl.com>; Mon, 14 Nov 2016 07:23:06 -0800 (PST)
Received: from resqmta-ch2-01v.sys.comcast.net (resqmta-ch2-01v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3A7D2129439 for <abnf-discuss@ietf.org>; Mon, 14 Nov 2016 07:23:06 -0800 (PST)
Received: from resomta-ch2-15v.sys.comcast.net ([69.252.207.111]) by resqmta-ch2-01v.sys.comcast.net with SMTP id 6J5ecPmLcTaLw6J69cfMhY; Mon, 14 Nov 2016 15:23:05 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1479136985; bh=/gCJNdId+irGoAlgVijoopQKv14VCEjZ/OB/0+3FOVg=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=DmXLHU4GBUTAzrGdt00GFnmuXNqOdfyG+75U6NuowetliytPwk8RP0Trqpk+RuVUl doz5Njzh2Tvuo+P4Q56gD4njLaera22IDihvpyxIRLQ72k55mQEHT7ZWpbOXOaiZoK tCXGfC7+pktq/piUzzRD/ST7QQt26b0NAWZotCZ4mBqMXIrUJd0e2iTjl4LQR8bVrt KJq3RscWlV/Hu/VVJ1y/wDN4jVZBmHCH0Y1W8zVKbSKbeL/fndpUatfzZnEYYQ72nP vuWK5GE8sKcrMAsYgKRTbeI3wBLPmmOit/1bEv1A5JitofWmpS/BVnHnJUXMzA5Yf7 Jg3iEVGCiVMLg==
Received: from [192.168.1.110] ([73.186.127.100]) by resomta-ch2-15v.sys.comcast.net with SMTP id 6J68cXtAvoJWi6J69cdW9e; Mon, 14 Nov 2016 15:23:05 +0000
To: abnf-discuss@ietf.org
References: <5828DD42.8010009@gmail.com>
From: Paul Kyzivat <paul.kyzivat@comcast.net>
Message-ID: <32d00b4c-21ea-6a59-981b-8be5757886dd@comcast.net>
Date: Mon, 14 Nov 2016 10:23:03 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <5828DD42.8010009@gmail.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
X-CMAE-Envelope: MS4wfEQBAfbhbGjOB6GvdM5sXdzMCm02cdyBZwYduHURvVEeIUroFjifwZ84dEAMUmGYQD2TIww+egig0W1w2rigsZ0Kh96c5XMDQPZ2+ZrCGZJp0w0XH/Hi FNDgLQ9p/QxETU8vBsTMgGdsVcbWqXuAU2Z3uwpFZWa0xpHHAo+dqiaUeyNUZShaqwtIIOZy5b6JbQ==
Archived-At: <https://mailarchive.ietf.org/arch/msg/abnf-discuss/Dg-CoF6LUrIpxDciNX60w25eukU>
Subject: Re: [abnf-discuss] constrained-01 - advantage?
X-BeenThere: abnf-discuss@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "General discussion about tools, activities and capabilities involving the ABNF meta-language" <abnf-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/abnf-discuss/>
List-Post: <mailto:abnf-discuss@ietf.org>
List-Help: <mailto:abnf-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/abnf-discuss>, <mailto:abnf-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Nov 2016 15:23:07 -0000

On 11/13/16 4:38 PM, Doug Royer wrote:
>
> It has been over 30 years since I have taken any math classes.

I have you beat - 50 years for me.

> The
> introduction sections were a bit difficult to follow. I would suggest
> simplification.
>
>   ---------------------------------------------------------
>
> How is:
>
>  resent-field    = "Resent-" field-name ":" unstructured CRLF
>
>  resent-date   ^ resent-field = "Resent-Date:" date-time CRLF
>
>  resent-from   ^ resent-field = "Resent-From:" mailbox-list CRLF
>
>  resent-sender ^ resent-field = "Resent-Sender:" mailbox CRLF
>
>  ...
>
> Simpler or more of an advantage than:
>
>  resent-field  = resent-unstructured / resent-date / resent-from /
> resent-sender / ...
>
>  resent-unstructured = "Resent-" field-name ":" unstructured CRLF
>
>  resent-date         = "Resent-Date:" date-time CRLF
>
>  resent-from         = "Resent-From:" mailbox-list CRLF
>
>  resent-sender       = "Resent-Sender:" mailbox CRLF
>
>  ...

The latter is what is commonly used now for extensible fields. When 
extensions are done in separate drafts it becomes:

    resent-field = <defined in RFCnnn>
    resent-field =/ "Resent-Flag:" flag CRLF

With extensions allowed in separate drafts there is usually a rule that 
anything matching resent-unstructured and not one of the other 
alternatives is to be ignored. (This makes extensibility with backward 
compatibility work.)

But this only works if every extension matches resent-unstructured. But 
when using this form there is no validation that they do. I have 
reviewed extensions of this sort that I discovered did not match in this 
way. And often the ABNF isn't reviewed carefully enough to guarantee 
that such things will be noticed.

What the proposal does is ensure that the compatibility is verified by 
the ABNF parser.

	Thanks,
	Paul