Re: [ietf-dkim] Re: Use of LWSP in ABNF -- consensus call

Tony Finch <dot@dotat.at> Fri, 18 May 2007 08:00 UTC

Return-path: <discuss-bounces@apps.ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1HoxOL-00056y-F9; Fri, 18 May 2007 04:00:49 -0400
Received: from discuss by megatron.ietf.org with local (Exim 4.43) id 1HoxOK-00056o-Le for discuss-confirm+ok@megatron.ietf.org; Fri, 18 May 2007 04:00:48 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1HoxOK-00056g-7W for discuss@apps.ietf.org; Fri, 18 May 2007 04:00:48 -0400
Received: from ppsw-0.csi.cam.ac.uk ([131.111.8.130]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HoxOI-00018N-U9 for discuss@apps.ietf.org; Fri, 18 May 2007 04:00:48 -0400
X-Cam-SpamDetails: Not scanned
X-Cam-AntiVirus: No virus found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from hermes-1.csi.cam.ac.uk ([131.111.8.51]:35736) by ppsw-0.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.150]:25) with esmtpa (EXTERNAL:fanf2) id 1HoxOF-0005ws-1I (Exim 4.63) (return-path <fanf2@hermes.cam.ac.uk>); Fri, 18 May 2007 09:00:43 +0100
Received: from fanf2 (helo=localhost) by hermes-1.csi.cam.ac.uk (hermes.cam.ac.uk) with local-esmtp id 1HoxOF-000169-By (Exim 4.54) (return-path <fanf2@hermes.cam.ac.uk>); Fri, 18 May 2007 09:00:43 +0100
Date: Fri, 18 May 2007 09:00:43 +0100
From: Tony Finch <dot@dotat.at>
X-X-Sender: fanf2@hermes-1.csi.cam.ac.uk
To: John C Klensin <john-ietf@jck.com>
Subject: Re: [ietf-dkim] Re: Use of LWSP in ABNF -- consensus call
In-Reply-To: <4512BF1B1B2C8C4A9487E733@p3.JCK.COM>
Message-ID: <Pine.LNX.4.64.0705180849560.12940@hermes-1.csi.cam.ac.uk>
References: <BFE21101-5BC4-45FA-8905-89C2D4A1E593@osafoundation.org> <4648E8CB.3010502@dcrocker.net> <F5C06D62-639B-40CB-803F-6D9E50673768@osafoundation.org> <4649FA12.30909@alvestrand.no> <4649FB9A.9000107@bbiw.net> <1504A69099CF1B62F66FE576@p3.JCK.COM> <tsllkfnwgfb.fsf@mit.edu> <E09D6916A9D19A52976E4567@p3.JCK.COM> <tsl7ir7utz8.fsf@mit.edu> <CF36D27A6AC084536D6D8F24@[192.168.1.119]> <4512BF1B1B2C8C4A9487E733@p3.JCK.COM>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
X-Spam-Score: 0.2 (/)
X-Scan-Signature: 93238566e09e6e262849b4f805833007
Cc: Apps Discuss <discuss@apps.ietf.org>, IETF General Discussion Mailing List <ietf@ietf.org>, ietf-dkim@mipassoc.org
X-BeenThere: discuss@apps.ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: general discussion of application-layer protocols <discuss.apps.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=unsubscribe>
List-Post: <mailto:discuss@apps.ietf.org>
List-Help: <mailto:discuss-request@apps.ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=subscribe>
Errors-To: discuss-bounces@apps.ietf.org

On Thu, 17 May 2007, John C Klensin wrote:
>
> After all <CRLF> Thing <SPACE><CRLF> could case similar problems if
> some construction permitted it ...

This is not news. There have for a long time been problems with
significant trailing space, which is why CRLF 1*WSP CRLF in a header
is part of the obs- syntax of 2822, and why quoted-printable encodes
WSP at the end of a line.

> ... and defining a grammar that would prohibit any <SPACE><CRLF>
> construction isn't easy in ABNF for reasons that have nothing to
> do with LWSP.

This is simply incorrect. It's trivial to define a whitespace
construction that only allows CRLF at the beginning of a sequence:

	NTWSP = [CRLF] 1*WSP ; non-trailing white space

Tony.
-- 
f.a.n.finch  <dot@dotat.at>  http://dotat.at/
SHANNON: SOUTHWEST VEERING WEST 7 TO SEVERE GALE 9, PERHAPS STORM 10 LATER.
VERY ROUGH OR HIGH. RAIN OR SQUALLY SHOWERS. MODERATE OR GOOD.