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

Alessandro Vesely <vesely@tana.it> Sat, 16 March 2013 08:59 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 7069F21F8895 for <apps-discuss@ietfa.amsl.com>; Sat, 16 Mar 2013 01:59:49 -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 ysuWtDhIYdVe for <apps-discuss@ietfa.amsl.com>; Sat, 16 Mar 2013 01:59:48 -0700 (PDT)
Received: from wmail.tana.it (mail.tana.it [62.94.243.226]) by ietfa.amsl.com (Postfix) with ESMTP id B455321F8873 for <apps-discuss@ietf.org>; Sat, 16 Mar 2013 01:59:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=beta; t=1363424387; bh=8rLODaMjK+SLUhOgJkjhHD0aJaNhMlGlwK5IG9hWJ0Q=; l=1248; h=Date:From:To:References:In-Reply-To; b=lq/Ar39WuSUlJEIlGOFCZbnwBgAxjhRggNZomVoeKfGgPPoG6wXtvARIx3Uf/Lqb/ D+qnnIuePhTdSm+wDIt2A7Cm8zgD5TMda9iw2Dcaa/HymneMnexJkkOYbEaPb/NAGW hNlOOqYi9dAs3Onfk6AV7qPZ/5PrNemFyiPGA0bI=
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:59:47 +0100 id 00000000005DC039.0000000051443483.00006DD0
Message-ID: <51443483.9030805@tana.it>
Date: Sat, 16 Mar 2013 09:59:47 +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> <514432BC.1010805@tana.it>
In-Reply-To: <514432BC.1010805@tana.it>
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:59:49 -0000

On Sat 16/Mar/2013 09:52:12 +0100 Alessandro Vesely wrote:
> 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,

Oops, I overlooked that "[ CFWS version ]" in authres-header.  Thus
you helped me catch a bug.  Thanks!

> 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.
> _______________________________________________
> apps-discuss mailing list
> apps-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/apps-discuss
>