Re: [Gen-art] draft-baeuerle-netnews-cancel-lock-06 and RFCs 5536 & 5322

Paul Kyzivat <pkyzivat@alum.mit.edu> Tue, 19 September 2017 20:02 UTC

Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: gen-art@ietfa.amsl.com
Delivered-To: gen-art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6931B13438D for <gen-art@ietfa.amsl.com>; Tue, 19 Sep 2017 13:02:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.934
X-Spam-Level:
X-Spam-Status: No, score=-1.934 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no 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 B7JCNP-HU0lP for <gen-art@ietfa.amsl.com>; Tue, 19 Sep 2017 13:02:15 -0700 (PDT)
Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:40]) (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 34890134299 for <gen-art@ietf.org>; Tue, 19 Sep 2017 13:02:15 -0700 (PDT)
Received: from resomta-ch2-19v.sys.comcast.net ([69.252.207.115]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id uOi0d0WIMkjYruOikdQU7Z; Tue, 19 Sep 2017 20:02:14 +0000
Received: from PaulKyzivatsMBP.localdomain ([24.62.227.142]) by resomta-ch2-19v.sys.comcast.net with SMTP id uOijdIiDctwaXuOijdmoHx; Tue, 19 Sep 2017 20:02:14 +0000
To: Pete Resnick <presnick@qti.qualcomm.com>, Alexey Melnikov <aamelnikov@fastmail.fm>
Cc: draft-baeuerle-netnews-cancel-lock.all@ietf.org, General Area Review Team <gen-art@ietf.org>
References: <9be2e7af-b99d-4f86-6552-bfada936600d@alum.mit.edu> <20170707174750.487009ed@WStation4> <7452e826-62e9-0d6e-32b5-dcdefcb4c2ea@alum.mit.edu> <20170711203934.458e3b62@WStation4> <37001dcd-6551-78b4-18e7-75fbebaff761@alum.mit.edu> <0147f247-2763-8017-f123-5cdd6ceb06b3@alum.mit.edu> <1505814165.1516258.1110891352.7E7D795F@webmail.messagingengine.com> <38d90b33-4edf-8bba-9bfe-9b5f5a0890d3@alum.mit.edu> <1505831034.2210395.1111181888.051F2D85@webmail.messagingengine.com> <D0DEE08D-531E-4CD5-8C65-52B008B7CB02@qti.qualcomm.com>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <2761ff34-eec8-d326-18c1-7f126155593f@alum.mit.edu>
Date: Tue, 19 Sep 2017 16:02:12 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <D0DEE08D-531E-4CD5-8C65-52B008B7CB02@qti.qualcomm.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-CMAE-Envelope: MS4wfHs9HN2FJ0qHAcG1/GAbpVD/ybcF0/xuYh7wUPKgO5J5DiLoRaYuU/8GVG9zdSBsDqXSsagGhu5pmDPN6H5YhajzUghIDyQrPWEEstF/FZJHgllPD1XY M90bwYn98zwS3M6Jh2TJ2xQCtXkvTLI2cuE53E4+Y9xkgKhF4HWwAeiUkxuamHDBlU1NyYDx4N/fFIpflL5veQs6IfjVIICBlUJav3CUfIg6c8Dq8vvT/pQF 2vzTY91quRofke0mKiXYtcYx6I2oxgruVVD+nw/0QwYcc8YkMbzAw/6YCIVoW8NSvTRjxjOHYiclM8YfVVUndYFK3J1Sg8XZXSeu/tPOADU=
Archived-At: <https://mailarchive.ietf.org/arch/msg/gen-art/eXGpl6Zt8LNmlQopi5nkeUD4udg>
Subject: Re: [Gen-art] draft-baeuerle-netnews-cancel-lock-06 and RFCs 5536 & 5322
X-BeenThere: gen-art@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "GEN-ART: General Area Review Team" <gen-art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/gen-art>, <mailto:gen-art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/gen-art/>
List-Post: <mailto:gen-art@ietf.org>
List-Help: <mailto:gen-art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/gen-art>, <mailto:gen-art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Sep 2017 20:02:16 -0000

On 9/19/17 2:41 PM, Pete Resnick wrote:
> On 19 Sep 2017, at 9:23, Alexey Melnikov wrote:
> 
>             optional-field =/ *( approved /
>             archive /
>             control /
>             distribution /
>             expires /
>             followup-to /
>             injection-date /
>             injection-info /
>             lines /
>             newsgroups /
>             organization /
>             path /
>             summary /
>             supersedes /
>             user-agent /
>             xref )
> 
>         I see one issue with the above. <optional-field> appears *twice*
>         in the
>         definition of <fields> in 5322. I don't understand what the
>         intent was
>         there - whether it was a mistake or was trying to express
>         something that
>         I am missing.
> 
>     I believe it was entirely intentional. The first instance allows to add
>     new trace header fields (which should be kept together in groups), the
>     second allows adding other types of header fields.
> 
> Correct, that was the intention. In 5322, optional-field is a catchall 
> for any new header field, so you need one for new trace fields and one 
> for other fields. Otherwise, there's no way to put a new field between 
> two trace fields. This was a fix in 5322 from 2822.
> 
>         This really needs some further discussion. (E.g., should
>         the valid values for <optional-field> as used with trace be distinct
>         from those in its later appearance?
> 
>     Yes. It would have been better to have 2 separate productions, like
>     trace-optional-field and other-optional-field, but what Pete did seems
>     to be Ok.

This probably wasn't *too* bad as long as <optional-field> was simply 
defined as:

    optional-field  =   field-name ":" unstructured CRLF

Even then, ideally there should have been some words to indicate that 
the <field-name>s used as extensions for trace be disjoint from those 
used as non-trace extension headers.

It gets more ugly when we start to extends <optional-field> 
syntactically via =/. Now, when the syntax is evaluated the new header 
fields we are defining show up as explicitly syntactically valid in both 
places. :-(

> Yes, that might have been nice, but putting extensibility syntax 
> throughout the grammar starts to get ugly. (Imagine 
> resent-optional-field, originator-optional-field, etc.) I think just one 
> is fine.

Since there is an IANA registry, another possibility would be to not 
attempt to revise the syntax from 5322 at all. Instead, simply rely on 
the the extensibility already there via <optional-field> and register 
all the new header fields in the IANA registry. (Use ABNF to define the 
syntax of the individual new headers but not their linkage into the 
message.)

Then use text to specify conditions about where they may appear in a 
message.

	Thanks,
	Paul

>         This needs to be thrashed out with
>         mail experts before this fix is finalized. I don't know what
>         forum is
>         appropriate for that.
> 
>     I am not sure. Pete?
> 
> Probably ietf-822, but (a) I personally haven't read the list in a very 
> long time, and (b) I don't think there's anything terribly controversial 
> about the change.
> 
>         Ignoring that, I agree this change to 5536 would achieve the goal
>         without requiring a change in 5322, which is progress. However I
>         think a
>         tweak to the above would be be a bit cleaner:
> 
>         optional-field =/ approved /
>         archive /
>         control /
>         distribution /
>         expires /
>         followup-to /
>         injection-date /
>         injection-info /
>         lines /
>         newsgroups /
>         organization /
>         path /
>         summary /
>         supersedes /
>         user-agent /
>         xref
> 
>         This is definitely a better fix than I was suggesting. (Thank
>         you Pete!)
> 
>     Good.
> 
> You're very welcome. I am equally fine with Alexey and Julien's version:
> 
> |optional-field = <see RFC 5322 Section 3.6.8> news-fields = approved / 
> archive / control / distribution / expires / followup-to / 
> injection-date / injection-info / lines / newsgroups / organization / 
> path / summary / supersedes / user-agent / xref optional-field /= 
> newsfields |
> 
> pr
> -- 
> Pete Resnick http://www.qualcomm.com/~presnick/ 
> <http://www.qualcomm.com/%7Epresnick/>
> Qualcomm Technologies, Inc. - +1 (858)651-4478
>