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

Alexey Melnikov <aamelnikov@fastmail.fm> Wed, 20 September 2017 09:54 UTC

Return-Path: <aamelnikov@fastmail.fm>
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 A9A04134292; Wed, 20 Sep 2017 02:54:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.72
X-Spam-Level:
X-Spam-Status: No, score=-2.72 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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=avOWE/sc; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=OX57kuk7
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 n71_yus28iFE; Wed, 20 Sep 2017 02:54:00 -0700 (PDT)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B6A2F134237; Wed, 20 Sep 2017 02:54:00 -0700 (PDT)
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0D0C220CF3; Wed, 20 Sep 2017 05:54:00 -0400 (EDT)
Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Wed, 20 Sep 2017 05:54:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=xALKHcc+9bEtTLqmh1 Lmp0e348WkhFMl7IrN6LuIdlg=; b=avOWE/scTq89lqtaUPtWq/T281PNeHAxEz +idQpC9u4xdM4/2UnT+oezlSe9l7LNEENGpxuwBTZICQug+rpLAaNLnhQ20aTiXY uOYCmwUg2DB1wOI6PxiwwG//F/elIXDl5XJzrjY/3Q0QspR9i0fOxt24Rk9Q2uxP hju3/vgrW0OJ46sWzhO5c22v2xkyCTvN8/0HICBI+FhV1nq6EClJPw9ZfZEA4F3b XLQYe0kry+//qdmFefeZvN+ctpjfLU97IIqs2n8NrdsAySfKRLBOCGuchYuaMuFE 92kQzq7NtvOf2UfzUANFGNq9mZoGXn9yHsjzGc+iR01oagaI0y5w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=xALKHcc+9bEtTLqmh1Lmp0e348WkhFMl7IrN6LuIdlg=; b=OX57kuk7 vgZwMJLInwxAVQEm1pVIuRWgUSL+k+4G6pAGJctD9+2GQrhpbcTaLo3U6JqJqrs8 lVHRAT9lNfby3ycdMcq2axyDNa7Wjk7lmcBGyh5yrkBbUqWZsbOFuzPY5tsTxxOG shPW9czkc1yD7otYdgN6m+QBbyBlJdBd6k34nc9mramMCJKcic89s4/yZYQ5AZey PogFSbkLpZ0I+wiXNdCd3bAjtFJ13+1YJ91B2dSxHwPWHcqvOfmNu22d3UQdgg5E zhQ8X+EnLaTnh6hF5q8FnnejrCTkmIRbZ5NMxqY3OyiPcGlt4Rpki1Kh/5gqSneY H1EqRvXjGV7+UQ==
X-ME-Sender: <xms:tzrCWehvBiUa-pzoLaUEHjo9G3w3trhY-IgBykzlA8G1DdGH3487Bg>
X-Sasl-enc: sJ6AqaxUTK+EpYS5uknx1O492x863UV8rA+RTOuqZk8w 1505901239
Received: from [10.4.40.8] (unknown [85.255.237.23]) by mail.messagingengine.com (Postfix) with ESMTPA id 7EA7E7F94C; Wed, 20 Sep 2017 05:53:59 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (1.0)
From: Alexey Melnikov <aamelnikov@fastmail.fm>
X-Mailer: iPhone Mail (13G35)
In-Reply-To: <2761ff34-eec8-d326-18c1-7f126155593f@alum.mit.edu>
Date: Wed, 20 Sep 2017 10:57:29 +0100
Cc: Pete Resnick <presnick@qti.qualcomm.com>, draft-baeuerle-netnews-cancel-lock.all@ietf.org, General Area Review Team <gen-art@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <E06A5BFE-8232-43D7-8F39-CF441B90720A@fastmail.fm>
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> <2761ff34-eec8-d326-18c1-7f126155593f@alum.mit.edu>
To: Paul Kyzivat <pkyzivat@alum.mit.edu>
Archived-At: <https://mailarchive.ietf.org/arch/msg/gen-art/SD-QWitBITTfVWZxVs8IZWj4rb0>
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: Wed, 20 Sep 2017 09:54:02 -0000

Hi Paul,

> On 19 Sep 2017, at 21:02, Paul Kyzivat <pkyzivat@alum.mit.edu> wrote:
> 
>> 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.

On my memory most of new header fields are defined without extending "optional-field" production. So people are already doing what you propose.

> 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.

Right.

>    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
>