Re: [apps-discuss] draft-kucherawy-rfc5451bis

Alessandro Vesely <vesely@tana.it> Sat, 16 March 2013 08:52 UTC

Return-Path: <vesely@tana.it>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 01F2521F8C00 for <apps-discuss@ietfa.amsl.com>; Sat, 16 Mar 2013 01:52:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.719
X-Spam-Level:
X-Spam-Status: No, score=-4.719 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_IT=0.635, HOST_EQ_IT=1.245, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YY9HXuGy-qlL for <apps-discuss@ietfa.amsl.com>; Sat, 16 Mar 2013 01:52:14 -0700 (PDT)
Received: from wmail.tana.it (mail.tana.it [62.94.243.226]) by ietfa.amsl.com (Postfix) with ESMTP id 6017C21F8BFD for <apps-discuss@ietf.org>; Sat, 16 Mar 2013 01:52:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=beta; t=1363423932; bh=7UKi+/NVLo0uPXybJ5BGNXJCPf2vl7wZIQ6uJnZJPw0=; l=882; h=Date:From:To:References:In-Reply-To; b=LWS7dSSqsLR9f7Bw3TqTurvXA2LRy/X7ttpDJk5z+1zNuPHyTu/kLExcSI+5BJF3y Pn9Fcf14EZ6IKVnEg+I/A42GdV9v5LGdxpiKK484Vp8ntsLVKUwzUBgAzWajqaNgMc wmSw812HtBGhVGfMloq5kiYhe1oCPjXQkF8Oz1LI=
Received: from [172.25.197.158] (pcale.tana [172.25.197.158]) (AUTH: CRAM-MD5 uXDGrn@SYT0/k) by wmail.tana.it with ESMTPA; Sat, 16 Mar 2013 09:52:12 +0100 id 00000000005DC039.00000000514432BC.00004B05
Message-ID: <514432BC.1010805@tana.it>
Date: Sat, 16 Mar 2013 09:52:12 +0100
From: Alessandro Vesely <vesely@tana.it>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
To: apps-discuss@ietf.org
References: <CAL0qLwbgjnt8Msofok3ExKBmChtQPfMEFgrrZBimEzU5CYgSjA@mail.gmail.com> <CAKHUCzxfBtLTt3p3moGgEQx+p5kr=-e2Mn58xaqNvWFGiW=Lpw@mail.gmail.com>
In-Reply-To: <CAKHUCzxfBtLTt3p3moGgEQx+p5kr=-e2Mn58xaqNvWFGiW=Lpw@mail.gmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Re: [apps-discuss] draft-kucherawy-rfc5451bis
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 16 Mar 2013 08:52:15 -0000

On Fri 15/Mar/2013 12:34:03 +0100 Dave Cridland wrote:
> 
> Authentication-Results: foo.example.net (My mailserver) / (I am
> number) 1 (You see) ; dkim (Because I like it) /2 (Two yay) = (wait
> for it) pass ; policy (And a dot can go here) . (Like that) fruit
> (which surprised me) = (because I was not expecting it) banana

My understanding is that the above is not valid.  Nuking three chars,
the first "/" and the "1" from autherv-id, which should be dot-atom,
and then the ";" between "pass" and "policy", which shouldn't be
there, I can parse it with my new Perl function, and get:

$VAR1 = {
          'dkim' => [
                      {
                        'policy_fruit' => 'banana',
                        'result' => 'pass'
                      }
                    ]
        };

(I s/./_/ for ease of use.)

I agree the grammar is laid down too lazily.  For example, dot-atom
allows equal signs to be part of property, e.g. "fru=it", which would
be unparsable.